aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Uzunov <andrey.uzunov@gmail.com>2013-10-10 15:02:16 +0000
committerAndrey Uzunov <andrey.uzunov@gmail.com>2013-10-10 15:02:16 +0000
commitae1feacf2aee18d1fd2627a495ec08c64cac102c (patch)
tree4dc18e26c8fe8cdfb8f557638c703b7d472a8557
parent78948196e5c86f353d1b0de3179ee3fcad21016c (diff)
downloadlibmicrohttpd-ae1feacf2aee18d1fd2627a495ec08c64cac102c.tar.gz
libmicrohttpd-ae1feacf2aee18d1fd2627a495ec08c64cac102c.zip
spdy: check input param for null
-rw-r--r--src/microspdy/structures.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/microspdy/structures.c b/src/microspdy/structures.c
index eab7cdd6..089bfd2b 100644
--- a/src/microspdy/structures.c
+++ b/src/microspdy/structures.c
@@ -272,6 +272,8 @@ SPDY_name_value_iterate (struct SPDY_NameValue *container,
272void 272void
273SPDY_destroy_response(struct SPDY_Response *response) 273SPDY_destroy_response(struct SPDY_Response *response)
274{ 274{
275 if(NULL == response)
276 return;
275 free(response->data); 277 free(response->data);
276 free(response->headers); 278 free(response->headers);
277 free(response); 279 free(response);