[PATCH 08/24] auth: Don't forget to free OC_FORM_OPT_STOKEN entries
Kevin Cernekee
cernekee at gmail.com
Sat Nov 3 13:22:50 EDT 2012
Signed-off-by: Kevin Cernekee <cernekee at gmail.com>
---
auth.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/auth.c b/auth.c
index 039c939..d51da87 100644
--- a/auth.c
+++ b/auth.c
@@ -500,7 +500,8 @@ int parse_xml_response(struct openconnect_info *vpninfo, char *response,
struct oc_form_opt *tmp = form->opts->next;
if (form->opts->type == OC_FORM_OPT_TEXT ||
form->opts->type == OC_FORM_OPT_PASSWORD ||
- form->opts->type == OC_FORM_OPT_HIDDEN)
+ form->opts->type == OC_FORM_OPT_HIDDEN ||
+ form->opts->type == OC_FORM_OPT_STOKEN)
free(form->opts->value);
else if (form->opts->type == OC_FORM_OPT_SELECT) {
struct oc_form_opt_select *sel = (void *)form->opts;
--
1.7.10.4
More information about the openconnect-devel
mailing list