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:
harti 2006-01-31 14:59:07 +00:00
parent 574aae598d
commit 8981065828

View File

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