# HG changeset patch # User Olaf Wintermann # Date 1652121090 -7200 # Node ID b62ea7f31593059a69657f7fe80755658cb348fd # Parent 1c75c0498520f6c89de8dd3abfe48cf77832b5bc fix crash in davql exec, if the server response can't be parsed diff -r 1c75c0498520 -r b62ea7f31593 libidav/davqlexec.c --- a/libidav/davqlexec.c Mon Aug 09 19:01:02 2021 +0200 +++ b/libidav/davqlexec.c Mon May 09 20:31:30 2022 +0200 @@ -627,7 +627,11 @@ // propfind request successful, now parse the response char *url = "http://url/"; PropfindParser *parser = create_propfind_parser(rpbuf, url); - // TODO: test if parser is null + if(!parser) { + result.status = -1; + break; + } + ResponseTag response; int r; while((r = get_propfind_response(parser, &response)) != 0) {