Commit a18e2540 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Allow client=NULL in util_http_build_header()

This fixes a bug in 8941de32:
When passing NULL as client parameter to util_http_build_header()
there was a segfault before this change.
parent 19162018
......@@ -711,7 +711,7 @@ ssize_t util_http_build_header(char * out, size_t len, ssize_t offset,
status_buffer,
config->server_id,
connection_header,
(client->admin_command == ADMIN_COMMAND_ERROR ?
(client && client->admin_command == ADMIN_COMMAND_ERROR ?
"GET, SOURCE" : "GET"),
(config->tls_ok ? "Upgrade: TLS/1.0\r\n" : ""),
currenttime_buffer,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment