summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/proto_socketpair.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/hastd/proto_socketpair.c')
-rw-r--r--sbin/hastd/proto_socketpair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/proto_socketpair.c b/sbin/hastd/proto_socketpair.c
index 913d59c..d13caa9 100644
--- a/sbin/hastd/proto_socketpair.c
+++ b/sbin/hastd/proto_socketpair.c
@@ -70,7 +70,7 @@ sp_client(const char *srcaddr, const char *dstaddr, void **ctxp)
if (spctx == NULL)
return (errno);
- if (socketpair(PF_UNIX, SOCK_STREAM, 0, spctx->sp_fd) < 0) {
+ if (socketpair(PF_UNIX, SOCK_STREAM, 0, spctx->sp_fd) == -1) {
ret = errno;
free(spctx);
return (ret);
OpenPOWER on IntegriCloud