summaryrefslogtreecommitdiff
path: root/sbin/isakmpd
diff options
context:
space:
mode:
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);