diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-01-23 10:16:03 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-01-23 10:16:03 +0000 |
commit | 86c4c05681e8e38616fb7b0b575b4cd944ddfa83 (patch) | |
tree | 690c52af1830084c9a6d1d2e8cb7641860e1ff19 | |
parent | 9e0585bb826cf7bb879ed3ad68a26767d3e33379 (diff) | |
download | conntrack-tools-86c4c05681e8e38616fb7b0b575b4cd944ddfa83.tar.gz conntrack-tools-86c4c05681e8e38616fb7b0b575b4cd944ddfa83.zip |
Max Kellermann <max@duempel.org>:
fix error checking of local_create_server()
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/run.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -90,6 +90,7 @@ o use fputs() instead of fprintf() in log.c o improve error message if netlink initialization fails o merge mod_alarm() into add_alarm(), remove alarm_set_expiration() o remove init_alarm() before add_alarm() +o fix error checking of local_create_server() version 0.9.5 (2007/07/29) ------------------------------ @@ -116,7 +116,7 @@ init(void) /* local UNIX socket */ STATE(local) = local_server_create(&CONFIG(local)); - if (!STATE(local)) { + if (STATE(local) == -1) { dlog(LOG_ERR, "can't open unix socket!"); return -1; } |