From: David Woodhouse Date: Tue, 31 Aug 2010 23:19:23 +0000 (+0100) Subject: Fix host selection in NM auth-dialog X-Git-Tag: v2.26~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad6a526c6ed5ef697698ceb9169e840cccab2964;p=platform%2Fupstream%2Fopenconnect.git Fix host selection in NM auth-dialog It wasn't actually clearing vpninfo->peer_addr, so we were always just reconnecting to the first host, even when the user changed the selection. Signed-off-by: David Woodhouse --- diff --git a/nm-auth-dialog.c b/nm-auth-dialog.c index a1ca194..dd696de 100644 --- a/nm-auth-dialog.c +++ b/nm-auth-dialog.c @@ -1175,6 +1175,8 @@ static void connect_host(auth_ui_data *ui_data) /* reset ssl context. * TODO: this is probably not the way to go... */ if (ui_data->vpninfo->https_ssl) { + free(ui_data->vpninfo->peer_addr); + ui_data->vpninfo->peer_addr = NULL; openconnect_close_https(ui_data->vpninfo); } if (ui_data->vpninfo->https_ctx) {