--- ne_auth.c~	2004-07-24 16:39:43.000000000 +0200
+++ ne_auth.c	2005-01-22 00:19:46.985877136 +0100
@@ -356,6 +356,7 @@
     if (get_gss_name(&server_name, sess))
         return -1;
 
+    context = GSS_C_NO_CONTEXT;
     major_status = gss_init_sec_context(&minor_status,
                                         GSS_C_NO_CREDENTIAL,
                                         &context,
@@ -924,7 +925,7 @@
     success = 0;
 
 #ifdef HAVE_GSSAPI
-    if (strcmp(ne_get_scheme(sess->sess), "https") == 0) {
+    if (!success) {
         NE_DEBUG(NE_DBG_HTTPAUTH, "Looking for GSSAPI.\n");
         /* Try a GSSAPI challenge */
         for (chall = challenges; chall != NULL; chall = chall->next) {
