mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -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 ret;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
memset(&query, 0, sizeof(struct evkeyvalq));
|
||||||
|
|
||||||
full_uri = httpd_fixup_uri(req);
|
full_uri = httpd_fixup_uri(req);
|
||||||
if (!full_uri)
|
if (!full_uri)
|
||||||
{
|
{
|
||||||
|
@ -882,6 +882,8 @@ rsp_request(struct evhttp_request *req)
|
|||||||
int i;
|
int i;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
memset(&query, 0, sizeof(struct evkeyvalq));
|
||||||
|
|
||||||
full_uri = httpd_fixup_uri(req);
|
full_uri = httpd_fixup_uri(req);
|
||||||
if (!full_uri)
|
if (!full_uri)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user