You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
429 B
13 lines
429 B
2 years ago
|
diff -urNp a/snmplib/snmp_logging.c b/snmplib/snmp_logging.c
|
||
|
--- a/snmplib/snmp_logging.c 2023-02-15 10:19:15.691827254 +0100
|
||
|
+++ b/snmplib/snmp_logging.c 2023-02-15 10:24:41.006642974 +0100
|
||
|
@@ -490,7 +490,7 @@ snmp_log_options(char *optarg, int argc,
|
||
|
char *
|
||
|
snmp_log_syslogname(const char *pstr)
|
||
|
{
|
||
|
- if (pstr)
|
||
|
+ if (pstr && (pstr != syslogname))
|
||
|
strlcpy (syslogname, pstr, sizeof(syslogname));
|
||
|
|
||
|
return syslogname;
|