diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-09-23 01:43:28 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-09-23 01:45:34 +0200 |
commit | 8ea913b2eaadbd92e069ea6b71cc5f5df409decf (patch) | |
tree | 17801331900df94b4cf05fa232d755fac7f3929a /src/socket.c | |
parent | 0fe9972f3c2e20b649e0e7da0e61945253622128 (diff) |
coverity: fix a couple of bugs found by coverity
Diffstat (limited to 'src/socket.c')
-rw-r--r-- | src/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c index 572e622011..a1b451eba0 100644 --- a/src/socket.c +++ b/src/socket.c @@ -844,7 +844,7 @@ static int mq_address_create( fd = mq_open(path, O_RDONLY|O_CLOEXEC|O_NONBLOCK|O_CREAT, mq_mode, attr); umask(old_mask); - if (fd < 0 && errno != EEXIST) { + if (fd < 0) { r = -errno; goto fail; } |