From 52d3fd106487e02b69f4be870870e772234cfd02 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sun, 7 Jun 2009 19:03:18 +0200 Subject: [PATCH] Clear evkeyvalq structs before use; fix crasher --- src/httpd_daap.c | 2 ++ src/httpd_rsp.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/httpd_daap.c b/src/httpd_daap.c index 4e8738a5..1fd1b11e 100644 --- a/src/httpd_daap.c +++ b/src/httpd_daap.c @@ -1785,6 +1785,8 @@ daap_request(struct evhttp_request *req) int ret; int i; + memset(&query, 0, sizeof(struct evkeyvalq)); + full_uri = httpd_fixup_uri(req); if (!full_uri) { diff --git a/src/httpd_rsp.c b/src/httpd_rsp.c index 0436ab13..c6ad177e 100644 --- a/src/httpd_rsp.c +++ b/src/httpd_rsp.c @@ -882,6 +882,8 @@ rsp_request(struct evhttp_request *req) int i; int ret; + memset(&query, 0, sizeof(struct evkeyvalq)); + full_uri = httpd_fixup_uri(req); if (!full_uri) {