diff options
author | florian <florian@openbsd.org> | 2019-10-22 09:31:23 +0000 |
---|---|---|
committer | florian <florian@openbsd.org> | 2019-10-22 09:31:23 +0000 |
commit | 2c98785eaaa1aa29b9282a670c267ee0e1b0ec4c (patch) | |
tree | de674704b23d6f4820a8a47bf75b734ad6ae27b3 /usr.sbin/httpd | |
parent | fix SEE ALSO; (diff) | |
download | wireguard-openbsd-2c98785eaaa1aa29b9282a670c267ee0e1b0ec4c.tar.xz wireguard-openbsd-2c98785eaaa1aa29b9282a670c267ee0e1b0ec4c.zip |
Do not log "(null)" in debug logging.
OK deraadt
Diffstat (limited to 'usr.sbin/httpd')
-rw-r--r-- | usr.sbin/httpd/server_http.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/httpd/server_http.c b/usr.sbin/httpd/server_http.c index 817588e2278..9139a738395 100644 --- a/usr.sbin/httpd/server_http.c +++ b/usr.sbin/httpd/server_http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server_http.c,v 1.133 2019/05/08 21:46:56 tb Exp $ */ +/* $OpenBSD: server_http.c,v 1.134 2019/10/22 09:31:23 florian Exp $ */ /* * Copyright (c) 2006 - 2018 Reyk Floeter <reyk@openbsd.org> @@ -1332,7 +1332,8 @@ server_response(struct httpd *httpd, struct client *clt) goto fail; log_debug("%s: rewrote %s?%s -> %s?%s", __func__, - desc->http_path, desc->http_query, path, query); + desc->http_path, desc->http_query ? desc->http_query : "", + path, query ? query : ""); free(desc->http_path_alias); if ((desc->http_path_alias = strdup(path)) == NULL) |