diff options
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r-- | sbin/isakmpd/monitor_fdpass.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/isakmpd/monitor_fdpass.c b/sbin/isakmpd/monitor_fdpass.c index 8031416e7e4..8f3d1a44320 100644 --- a/sbin/isakmpd/monitor_fdpass.c +++ b/sbin/isakmpd/monitor_fdpass.c @@ -94,6 +94,10 @@ mm_receive_fd(int socket) return -1; } cmsg = CMSG_FIRSTHDR(&msg); + if (cmsg == NULL) { + log_error("%s: no message header", __func__); + return -1; + } if (cmsg->cmsg_type != SCM_RIGHTS) { log_error("%s: expected type %d got %d", __func__, SCM_RIGHTS, cmsg->cmsg_type); |