summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--monitor_fdpass.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 274e93b77..5b6c4eefd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,9 @@
18 - jmc@cvs.openbsd.org 2004/08/13 00:01:43 18 - jmc@cvs.openbsd.org 2004/08/13 00:01:43
19 [ssh-keygen.1] 19 [ssh-keygen.1]
20 kill whitespace at eol; 20 kill whitespace at eol;
21 - djm@cvs.openbsd.org 2004/08/13 02:51:48
22 [monitor_fdpass.c]
23 extra check for no message case; ok markus, deraadt, hshoexer, henning
21 24
2220040812 2520040812
23 - (dtucker) [sshd.c] Remove duplicate variable imported during sync. 26 - (dtucker) [sshd.c] Remove duplicate variable imported during sync.
@@ -1615,4 +1618,4 @@
1615 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 1618 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
1616 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 1619 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
1617 1620
1618$Id: ChangeLog,v 1.3503 2004/08/13 11:23:25 dtucker Exp $ 1621$Id: ChangeLog,v 1.3504 2004/08/13 11:29:02 dtucker Exp $
diff --git a/monitor_fdpass.c b/monitor_fdpass.c
index f0dd88e7e..dd1a13984 100644
--- a/monitor_fdpass.c
+++ b/monitor_fdpass.c
@@ -24,7 +24,7 @@
24 */ 24 */
25 25
26#include "includes.h" 26#include "includes.h"
27RCSID("$OpenBSD: monitor_fdpass.c,v 1.5 2004/06/21 17:36:31 avsm Exp $"); 27RCSID("$OpenBSD: monitor_fdpass.c,v 1.6 2004/08/13 02:51:48 djm Exp $");
28 28
29#include <sys/uio.h> 29#include <sys/uio.h>
30 30
@@ -113,6 +113,8 @@ mm_receive_fd(int sock)
113 fatal("%s: no fd", __func__); 113 fatal("%s: no fd", __func__);
114#else 114#else
115 cmsg = CMSG_FIRSTHDR(&msg); 115 cmsg = CMSG_FIRSTHDR(&msg);
116 if (cmsg == NULL)
117 fatal("%s: no message header", __func__);
116#ifndef BROKEN_CMSG_TYPE 118#ifndef BROKEN_CMSG_TYPE
117 if (cmsg->cmsg_type != SCM_RIGHTS) 119 if (cmsg->cmsg_type != SCM_RIGHTS)
118 fatal("%s: expected type %d got %d", __func__, 120 fatal("%s: expected type %d got %d", __func__,