diff options
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/hastd/proto_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/proto_common.c b/sbin/hastd/proto_common.c index 59b1e39..843366b 100644 --- a/sbin/hastd/proto_common.c +++ b/sbin/hastd/proto_common.c @@ -181,7 +181,7 @@ proto_descriptor_recv(int sock, int *fdp) return (errno); cmsg = CMSG_FIRSTHDR(&msg); - if (cmsg->cmsg_level != SOL_SOCKET || + if (cmsg == NULL || cmsg->cmsg_level != SOL_SOCKET || cmsg->cmsg_type != SCM_RIGHTS) { return (EINVAL); } |