diff options
author | Andrey Uzunov <andrey.uzunov@gmail.com> | 2013-10-10 15:02:16 +0000 |
---|---|---|
committer | Andrey Uzunov <andrey.uzunov@gmail.com> | 2013-10-10 15:02:16 +0000 |
commit | ae1feacf2aee18d1fd2627a495ec08c64cac102c (patch) | |
tree | 4dc18e26c8fe8cdfb8f557638c703b7d472a8557 | |
parent | 78948196e5c86f353d1b0de3179ee3fcad21016c (diff) | |
download | libmicrohttpd-ae1feacf2aee18d1fd2627a495ec08c64cac102c.tar.gz libmicrohttpd-ae1feacf2aee18d1fd2627a495ec08c64cac102c.zip |
spdy: check input param for null
-rw-r--r-- | src/microspdy/structures.c | 2 |
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, | |||
272 | void | 272 | void |
273 | SPDY_destroy_response(struct SPDY_Response *response) | 273 | SPDY_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); |