summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/isakmpd/conf.c')
-rw-r--r--sbin/isakmpd/conf.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sbin/isakmpd/conf.c b/sbin/isakmpd/conf.c
index ca951196feb..688ed85ef33 100644
--- a/sbin/isakmpd/conf.c
+++ b/sbin/isakmpd/conf.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: conf.c,v 1.19 2000/10/13 11:44:10 niklas Exp $ */
-/* $EOM: conf.c,v 1.38 2000/10/13 10:23:03 ho Exp $ */
+/* $OpenBSD: conf.c,v 1.20 2000/10/13 12:19:57 niklas Exp $ */
+/* $EOM: conf.c,v 1.39 2000/10/13 12:20:35 ho Exp $ */
/*
* Copyright (c) 1998, 1999, 2000 Niklas Hallqvist. All rights reserved.
@@ -523,8 +523,12 @@ conf_reinit (void)
return;
}
if ((st.st_mode & (S_IRWXG | S_IRWXO)) != 0)
- log_print ("conf_reinit: warning, %s may have too open permissions",
- conf_path);
+ {
+ log_print ("conf_reinit: not loading %s - too open permissions",
+ conf_path);
+ close (fd);
+ return;
+ }
sz = st.st_size;
new_conf_addr = malloc (sz);
if (!new_conf_addr)