diff options
-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; } |