avoid null pointer dereference

This commit is contained in:
Stephan Leemburg 2016-09-07 21:45:04 +02:00
parent 9930e7cd82
commit 0aedb9ba19

View File

@ -166,7 +166,8 @@ char *reverse_rewrite_url (struct conn_s *connptr, hashmap_t hashofheaders,
return NULL; return NULL;
} }
log_message (LOG_CONN, "Rewriting URL: %s -> %s", url, rewrite_url); log_message (LOG_CONN, "Rewriting URL: %s -> %s", url,
rewrite_url ? rewrite_url : "No mapping found");
/* Store reverse path so that the magical tracking cookie can be set */ /* Store reverse path so that the magical tracking cookie can be set */
if (config.reversemagic && reverse) if (config.reversemagic && reverse)