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
@ -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