summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2011-04-16 10:30:30 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2011-04-16 10:30:30 +0000
commitbf35bb6dae41c97716f0b69c4725fb50e7b9b982 (patch)
tree91975f55dc8956bf99411ed36aaaf2558d3b66f9
parent5522852b85715c8b7817c9e7981ec0d008a04b72 (diff)
Allow -v (verbose logging) to work if a -D option is supplied.
Previously, a specific check was made for any -D log option being used and, if so, *no* -v log entries are made, losing potentially useful log entries. ok lum@
-rw-r--r--sbin/isakmpd/log.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sbin/isakmpd/log.c b/sbin/isakmpd/log.c
index c52086f5dcf..4c3ca78abc5 100644
--- a/sbin/isakmpd/log.c
+++ b/sbin/isakmpd/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.60 2007/06/02 01:29:11 pvalchev Exp $ */
+/* $OpenBSD: log.c,v 1.61 2011/04/16 10:30:29 sthen Exp $ */
/* $EOM: log.c,v 1.30 2000/09/29 08:19:23 niklas Exp $ */
/*
@@ -329,15 +329,10 @@ void
log_verbose(const char *fmt, ...)
{
va_list ap;
- int i;
if (verbose_logging == 0)
return;
- for (i = 0; i < LOG_ENDCLASS; i++)
- if (log_level[i] > 0)
- return;
-
va_start(ap, fmt);
_log_print(0, LOG_NOTICE, fmt, ap, LOG_PRINT, 0);
va_end(ap);