fix sha1 comparison
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 5 Oct 2008 11:25:40 +0000 (12:25 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 5 Oct 2008 11:25:40 +0000 (12:25 +0100)
http.c

diff --git a/http.c b/http.c
index 9991284..627310b 100644 (file)
--- a/http.c
+++ b/http.c
@@ -734,7 +734,7 @@ int openconnect_obtain_cookie(struct openconnect_info *vpninfo)
                                else if (!strncmp(tok, "fu:", 3))
                                        fu = tok + 3;
                                else if (!strncmp(tok, "fh:", 3)) {
-                                       if (!strncasecmp(tok, vpninfo->xmlsha1,
+                                       if (!strncasecmp(tok+3, vpninfo->xmlsha1,
                                                         SHA_DIGEST_LENGTH * 2))
                                                break;
                                        sha = tok + 3;