summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2018-10-18 11:14:52 +0200
committerWim Taymans <wtaymans@redhat.com>2018-10-18 11:14:52 +0200
commit6266cd0f485a7426abdb32c3aef7107f587c2cb5 (patch)
treef8772c21165e06e387377098cc5590a87848771e
parente5dcacdefbdf50f23b51d3cb172a398aa5e9309f (diff)
protocol-native: -1 is for invalid fd, not 1
-rw-r--r--src/modules/module-protocol-native.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-protocol-native.c b/src/modules/module-protocol-native.c
index 84ebb5c1..65fdaf5c 100644
--- a/src/modules/module-protocol-native.c
+++ b/src/modules/module-protocol-native.c
@@ -729,7 +729,7 @@ static void destroy_server(struct pw_protocol_server *server)
unlink(s->addr.sun_path);
if (s->lock_addr[0])
unlink(s->lock_addr);
- if (s->fd_lock != 1)
+ if (s->fd_lock != -1)
close(s->fd_lock);
free(s);
}