Skip to content

Commit

Permalink
Fix issue stnoonan#12
Browse files Browse the repository at this point in the history
  • Loading branch information
aperigault committed Nov 23, 2017
1 parent 7e028a5 commit c0c417f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ngx_http_auth_spnego_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,10 @@ ngx_http_auth_spnego_handler(
* not fall through to real SPNEGO */
if (NGX_DECLINED == ngx_http_auth_spnego_basic(r, ctx, alcf)) {
spnego_debug0("Basic auth failed");
if (NGX_ERROR == ngx_http_auth_spnego_headers(r, ctx, NULL, alcf)) {
spnego_debug0("Error setting headers");
ctx->ret = NGX_HTTP_INTERNAL_SERVER_ERROR;
}
return (ctx->ret = NGX_HTTP_UNAUTHORIZED);
}

Expand Down

0 comments on commit c0c417f

Please sign in to comment.