[PATCH 08/24] auth: Don't forget to free OC_FORM_OPT_STOKEN entries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux