Fix connection/session bound auth
authorIsaac Boukris <iboukris@gmail.com>
Sun, 14 Jun 2015 19:57:26 +0000 (22:57 +0300)
committerSimo Sorce <simo@redhat.com>
Sun, 14 Jun 2015 21:49:49 +0000 (17:49 -0400)
A previous commit mistakenly removed the jump to the end with a successful
error.
Example scenario that is fixed with this patch:
$ curl -v -u usera:passa http://myhost/ http://myhost/ --ntlm

Reviewed-by: Simo Sorce <simo@redhat.com>
src/mod_auth_gssapi.c

index 39d63a5..66c8659 100644 (file)
@@ -431,6 +431,8 @@ static int mag_auth(request_rec *req)
             ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, req,
                           "Already established context found!");
             mag_set_req_data(req, cfg, mc);
+            ret = OK;
+            goto done;
         }
         pctx = &mc->ctx;
     } else {