]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Fix check for CSD
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 10 Mar 2013 11:57:03 +0000 (11:57 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 10 Mar 2013 11:57:07 +0000 (11:57 +0000)
Antonio Borneo pointed out that we were checking (A && B && B). The third
one should have been vpninfo->csd_stuburl, not vpninfo->csd_waiturl again.

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

diff --git a/http.c b/http.c
index a7af362f0bcc59739a3d4237c5dd72b5ea9db86c..c05d7a69eaaf0cf8f105c709f186ac07cecef868 100644 (file)
--- a/http.c
+++ b/http.c
@@ -999,7 +999,8 @@ int openconnect_obtain_cookie(struct openconnect_info *vpninfo)
                vpn_progress(vpninfo, PRG_INFO, _("XML POST enabled\n"));
 
        /* Step 4: Run the CSD trojan, if applicable */
-       if (vpninfo->csd_starturl && vpninfo->csd_waiturl && vpninfo->csd_waiturl) {
+       if (vpninfo->csd_starturl && vpninfo->csd_waiturl &&
+           vpninfo->csd_stuburl) {
                char *form_path = NULL;
 
                if (vpninfo->urlpath) {