Vendor patch: prevent a core dump when the trace option is not followed
by an option value. Submitted by: Shteryana Shopova <shteryana@yahoo.com>
This commit is contained in:
parent
9d165d9f13
commit
5105400329
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor/bsnmp/dist/; revision=155094
@ -1386,7 +1386,9 @@ main(int argc, char *argv[])
|
||||
if (value == NULL)
|
||||
syslog(LOG_ERR,
|
||||
"no value for 'trace'");
|
||||
snmp_trace = strtoul(value, NULL, 0);
|
||||
else
|
||||
snmp_trace =
|
||||
strtoul(value, NULL, 0);
|
||||
break;
|
||||
|
||||
case -1:
|
||||
|
Loading…
Reference in New Issue
Block a user