Skip to content

Commit

Permalink
Do not throw away form entries as soon as we get them
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jan 26, 2015
1 parent 90092f9 commit 85a5961
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions oncp.c
Expand Up @@ -447,6 +447,7 @@ int oncp_obtain_cookie(struct openconnect_info *vpninfo)
if (ret || !check_cookie_success(vpninfo))
break;

buf_truncate(resp_buf);

node = find_form_node(doc);
if (!node) {
Expand Down Expand Up @@ -518,8 +519,6 @@ int oncp_obtain_cookie(struct openconnect_info *vpninfo)
tncc_done:
xmlFreeDoc(doc);
doc = NULL;
buf_truncate(resp_buf);

}
out:
if (doc)
Expand Down

0 comments on commit 85a5961

Please sign in to comment.