mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 14:13:18 -05:00
Clear evkeyvalq structs before use; fix crasher
This commit is contained in:
parent
149d5432c6
commit
52d3fd1064
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user