Skip to content

Commit

Permalink
Don't clear vpninfo->dtls_cipher on CSTP reconnect
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 Jun 23, 2009
1 parent d45d92c commit f2bb4a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cstp.c
Expand Up @@ -81,7 +81,6 @@ static int start_cstp_connection(struct openconnect_info *vpninfo)
vpninfo->vpn_addr = vpninfo->vpn_netmask = NULL;
vpninfo->cstp_options = vpninfo->dtls_options = NULL;
vpninfo->vpn_domain = vpninfo->vpn_proxy_pac = NULL;
vpninfo->dtls_cipher = NULL;

for (i=0; i<3; i++)
vpninfo->vpn_dns[i] = vpninfo->vpn_nbns[i] = NULL;
Expand Down
2 changes: 1 addition & 1 deletion dtls.c
Expand Up @@ -342,7 +342,7 @@ int setup_dtls(struct openconnect_info *vpninfo)
} else if (!strcmp(dtls_opt->option + 7, "Rekey-Time")) {
vpninfo->dtls_times.rekey = atol(dtls_opt->value);
} else if (!strcmp(dtls_opt->option + 7, "CipherSuite")) {
vpninfo->dtls_cipher = dtls_opt->value;
vpninfo->dtls_cipher = strdup(dtls_opt->value);
}

dtls_opt = dtls_opt->next;
Expand Down

0 comments on commit f2bb4a9

Please sign in to comment.