Make openconnect_open_https() and openconnect_close_https() more forgiving.
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 28 May 2012 13:58:36 +0000 (14:58 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 28 May 2012 13:58:36 +0000 (14:58 +0100)
commitddfaf7fc6138e8e0ee0ac120d44e2b94d2378f05
tree6afd9c4900711e12a75e0144e236c5f6909d8c32
parent81716138e67460a2cab55a1036f782a2b2fee267
Make openconnect_open_https() and openconnect_close_https() more forgiving.

If openconnect_open_https() is called with the connection already open,
return immediate success. Thus, the caller doesn't have to poke at
vpninfo->https_ssl to check it.

And if openconnect_close_https() is called when the connection isn't open,
don't attempt to close/free things that don't exist.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
ssl.c