FreeBSD Bugzilla – Attachment 256565 Details for
Bug 283909
bsnmpget/walk: coredump when SNMPPASSWD is empty
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
suggested patch
libbsnmp.diff (text/plain), 592 bytes, created by
Gleb Smirnoff
on 2025-01-09 05:07:21 UTC
(
hide
)
Description:
suggested patch
Filename:
MIME Type:
Creator:
Gleb Smirnoff
Created:
2025-01-09 05:07:21 UTC
Size:
592 bytes
patch
obsolete
>diff --git a/contrib/bsnmp/lib/snmpclient.c b/contrib/bsnmp/lib/snmpclient.c >index ab3ac2d18e64..b312a37ed3ed 100644 >--- a/contrib/bsnmp/lib/snmpclient.c >+++ b/contrib/bsnmp/lib/snmpclient.c >@@ -1792,7 +1792,7 @@ snmp_discover_engine(char *passwd) > if (snmp_client.user.auth_proto == SNMP_AUTH_NOAUTH) > return (0); > >- if (passwd == NULL || >+ if (passwd == NULL || strlen(passwd) == 0 || > snmp_passwd_to_keys(&snmp_client.user, passwd) != SNMP_CODE_OK || > snmp_get_local_keys(&snmp_client.user, snmp_client.engine.engine_id, > snmp_client.engine.engine_len) != SNMP_CODE_OK)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 283909
: 256565