summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorMikhail Gusarov <dottedmag@dottedmag.net>2014-03-29 10:38:12 +0100
committerMikhail Gusarov <dottedmag@dottedmag.net>2014-03-29 10:38:12 +0100
commit3207d23e88cf1a65653d5edf0666630124c1e0a9 (patch)
tree1fa5efcc206e11b45ef7a0bbb6d85f62923ebd25 /src/main.c
parent18c0d55ea780036564e1ae642c9af1d02995cb08 (diff)
downloadrspamd-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.c2
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;