summaryrefslogtreecommitdiff
path: root/src/logger.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-21 17:06:40 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-21 17:06:40 +0200
commit88ce42f6944774788f610598fccdc6bab4283497 (patch)
treec6d9e98e8b800e0bede5fa9c384d4f55be20c505 /src/logger.c
parentdde770cfc6a287772a936be58b73adf9a6c334f5 (diff)
sd-daemon: verify socket family, too
Diffstat (limited to 'src/logger.c')
-rw-r--r--src/logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logger.c b/src/logger.c
index c486a8acd1..2e036dd77b 100644
--- a/src/logger.c
+++ b/src/logger.c
@@ -428,7 +428,7 @@ static int server_init(Server *s, unsigned n_sockets) {
fd = SD_LISTEN_FDS_START+i;
- if ((r = sd_is_socket(fd, SOCK_STREAM, 1)) < 0) {
+ if ((r = sd_is_socket(fd, AF_UNSPEC, SOCK_STREAM, 1)) < 0) {
log_error("Failed to determine file descriptor type: %s", strerror(-r));
goto fail;
}