From: Kevin Cernekee Date: Sat, 27 Oct 2012 22:26:11 +0000 (-0700) Subject: auth: Don't forget to free OC_FORM_OPT_STOKEN entries X-Git-Tag: v4.99~26^2~16 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=dbc605c968bfdd9b882f97562e389489b5ce06f8;p=users%2Fdwmw2%2Fopenconnect.git auth: Don't forget to free OC_FORM_OPT_STOKEN entries Signed-off-by: Kevin Cernekee --- diff --git a/auth.c b/auth.c index 039c939a..d51da87b 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;