Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http: Fix NULL vpninfo->hostname pointer on redirect
Commit 1fe3f43 (Make openconnect_set_hostname() clear vpninfo->peer_addr, use it more often) broke NEWHOST redirects: $ ./openconnect -v vpn.ufl.edu POST https://vpn.ufl.edu/ Attempting to connect to server 128.227.166.118:443 SSL negotiation with vpn.ufl.edu Matched DNS altname 'vpn.ufl.edu' Connected to HTTPS on vpn.ufl.edu Got HTTP response: HTTP/1.0 302 Temporary moved Content-Length: 0 Cache-Control: no-cache Pragma: no-cache Connection: Close Date: Tue, 31 Dec 2013 19:43:47 GMT Location: https://ctx36-vpn-asa5500-1-g10-1.ns.ufl.edu/ HTTP body length: (0) POST https://(null)/ Segmentation fault Fix this by populating vpninfo->hostname with the correct value. Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
- Loading branch information