diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-11 16:06:46 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-11 16:06:46 +0000 |
commit | 9ea8399fd73cced96c9337f014ae0dc58044e77b (patch) | |
tree | 56829667b8252b4aa513e1371641dbe9a8699b49 | |
parent | 1c133d93514914c2592d94d385d3b71f7667e5eb (diff) | |
download | rsyslog-9ea8399fd73cced96c9337f014ae0dc58044e77b.tar.gz rsyslog-9ea8399fd73cced96c9337f014ae0dc58044e77b.tar.xz rsyslog-9ea8399fd73cced96c9337f014ae0dc58044e77b.zip |
fixed a bug that caused rsyslogd to segfault when TCP listening was
disabled and it terminated
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | syslogd.c | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -2,6 +2,8 @@ Version 1.16.0 (RGer/Peter Vrabec), 2007-07-1? - build system switched to autotools - removed SYSV preprocessor macro use, replaced with autotools equivalents +- fixed a bug that caused rsyslogd to segfault when TCP listening was + disabled and it terminated --------------------------------------------------------------------------- Version 1.15.1 (RGer), 2007-07-10 - fixed a bug that caused a dynaFile selector to stall when there was @@ -7041,9 +7041,8 @@ static void die(int sig) close(funix[i]); /* Close the UDP inet socket. */ closeUDPListenSockets(); - /* Close the TCP inet socket. */ - if(*sockTCPLstn) { + if(sockTCPLstn != NULL && *sockTCPLstn) { deinit_tcp_listener(); } #endif |