Commit 11026cd3 authored by Pekka Pessi's avatar Pekka Pessi

http_add_tl() now accepts NULL http struct pointer.

parent f56a2bd7
......@@ -153,8 +153,10 @@ int http_add_tl(msg_t *msg, http_t *http,
ta_list ta;
int retval = 0;
if (msg == NULL || http == NULL)
if (msg == NULL)
return -1;
if (http == NULL)
http = msg_object(msg);
ta_start(ta, tag, value);
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