summaryrefslogtreecommitdiff
path: root/sbin/isakmpd
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-05-27 19:26:26 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-05-27 19:26:26 +0000
commit38f66a19669bc7f8daa578ec363a3988f3bc2fd8 (patch)
tree06c6e2b24791ef771eb6ecbc94edf20824f8bb12 /sbin/isakmpd
parentdd24df2909206625e6546d2ca898e7e261548f6a (diff)
Additional paranoia. OK hshoexer
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r--sbin/isakmpd/monitor.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/isakmpd/monitor.c b/sbin/isakmpd/monitor.c
index b54e19561c3..da0bef1509b 100644
--- a/sbin/isakmpd/monitor.c
+++ b/sbin/isakmpd/monitor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor.c,v 1.53 2005/05/27 07:08:21 moritz Exp $ */
+/* $OpenBSD: monitor.c,v 1.54 2005/05/27 19:26:25 cloder Exp $ */
/*
* Copyright (c) 2003 Håkan Olsson. All rights reserved.
@@ -653,6 +653,9 @@ m_priv_getfd(void)
must_read(path, len);
path[len] = '\0';
+ if (strlen(path) != len)
+ log_fatal("m_priv_getfd: invalid pathname");
+
must_read(&flags, sizeof flags);
must_read(&mode, sizeof mode);