diff options
author | 2014-08-06 12:29:43 +0000 | |
---|---|---|
committer | 2014-08-06 12:29:43 +0000 | |
commit | 30d381cf933ce47101a8fe60db23517366a50564 (patch) | |
tree | 057d25756426da8bec372fabb56a9f1942959773 | |
parent | The watermark exposed a bug in server_write that broke keep-alive (diff) | |
download | wireguard-openbsd-30d381cf933ce47101a8fe60db23517366a50564.tar.xz wireguard-openbsd-30d381cf933ce47101a8fe60db23517366a50564.zip |
avoid displaying a NULL pointer
ok deraadt@ reyk@
-rw-r--r-- | usr.sbin/httpd/logger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/httpd/logger.c b/usr.sbin/httpd/logger.c index 5c9a4d7239e..aa256ed72a2 100644 --- a/usr.sbin/httpd/logger.c +++ b/usr.sbin/httpd/logger.c @@ -1,4 +1,4 @@ -/* $OpenBSD: logger.c,v 1.3 2014/08/05 15:36:59 reyk Exp $ */ +/* $OpenBSD: logger.c,v 1.4 2014/08/06 12:29:43 jsg Exp $ */ /* * Copyright (c) 2014 Reyk Floeter <reyk@openbsd.org> @@ -250,7 +250,7 @@ logger_log(struct imsg *imsg) log = srv_conf->logerror; if (log == NULL || log->log_fd == -1) { - log_warnx("log file %s not opened", log->log_name); + log_warnx("log file %s not opened", log ? log->log_name : ""); return (0); } |