summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/syslogd.c b/syslogd.c
index fccca9ed..831d9482 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -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