From 8021912232ed1cc14b9175e7efaa7d8961940c3e Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 4 Dec 2009 13:11:50 +0100 Subject: bugfix: potential segfault when -p command line option was used thanks to varmojfekoj for pointing me at this bug --- ChangeLog | 2 ++ tools/syslogd.c | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 67d056a2..b670f29a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,8 @@ Version 3.22.2 [v3-stable] (rgerhards), 2009-07-?? in doc set (require TLS drivers) - bugfix: $CreateDirs variable not properly initialized, default thus was random (but most often "on") +- bugfix: potential segfault when -p command line option was used + thanks to varmojfekoj for pointing me at this bug --------------------------------------------------------------------------- Version 3.22.1 [v3-stable] (rgerhards), 2009-07-02 - bugfix: invalid error message issued if $inlcudeConfig was on an empty diff --git a/tools/syslogd.c b/tools/syslogd.c index 75d5ff82..10283568 100644 --- a/tools/syslogd.c +++ b/tools/syslogd.c @@ -3421,6 +3421,7 @@ int realMain(int argc, char **argv) } else { fprintf(stderr, "error -p is no longer supported, use module imuxsock instead"); } + break; case 'q': /* add hostname if DNS resolving has failed */ *(net.pACLAddHostnameOnFail) = 1; break; -- cgit