diff options
author | Mikhail Gusarov <dottedmag@dottedmag.net> | 2014-03-29 10:38:12 +0100 |
---|---|---|
committer | Mikhail Gusarov <dottedmag@dottedmag.net> | 2014-03-29 10:38:12 +0100 |
commit | 3207d23e88cf1a65653d5edf0666630124c1e0a9 (patch) | |
tree | 1fa5efcc206e11b45ef7a0bbb6d85f62923ebd25 /src/main.c | |
parent | 18c0d55ea780036564e1ae642c9af1d02995cb08 (diff) | |
download | rspamd-3207d23e88cf1a65653d5edf0666630124c1e0a9.tar.gz rspamd-3207d23e88cf1a65653d5edf0666630124c1e0a9.zip |
Fix checking for error in systemd_get_socket
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 6b71b0f53..7aae80b4a 100644 --- a/src/main.c +++ b/src/main.c @@ -564,7 +564,7 @@ systemd_get_socket (gint number) if (e != NULL) { errno = 0; max = strtoul (e, &err, 10); - if ((e == NULL || *e == '\0') && max > number) { + if ((err == NULL || *err == '\0') && max > number) { sock = number + sd_listen_fds_start; if (fstat (sock, &st) == -1) { return NULL; |