Only check config sha1 if we have a config
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 1 Oct 2008 10:44:08 +0000 (11:44 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 1 Oct 2008 10:44:08 +0000 (11:44 +0100)
ssl.c

diff --git a/ssl.c b/ssl.c
index fd58abb..a4ff601 100644 (file)
--- a/ssl.c
+++ b/ssl.c
@@ -362,7 +362,7 @@ int obtain_cookie_cert(struct anyconnect_info *vpninfo)
 
                if (!strcmp(opt->option, "webvpn"))
                        vpninfo->cookie = opt->value;
-               else if (!strcmp(opt->option, "webvpnc")) {
+               else if (vpninfo->xmlconfig && !strcmp(opt->option, "webvpnc")) {
                        char *amp = opt->value;
                        
                        while ((amp = strchr(amp, '&'))) {