Commit 7a4dcd93 authored by David Woodhouse's avatar David Woodhouse

Don't attempt to parse empty response from server

I couldn't trigger this until I hacked up stuff elsewhere to return
artificial failures, but still...
Signed-off-by: default avatarDavid Woodhouse <>
parent ed16cfcf
......@@ -493,6 +493,12 @@ int parse_xml_response(struct openconnect_info *vpninfo, char *response, struct
*formp = NULL;
if (!response) {
vpn_progress(vpninfo, PRG_TRACE,
_("Empty response from server\n"));
return -EINVAL;
form = calloc(1, sizeof(*form));
if (!form)
return -ENOMEM;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment