diff options
author | Tomas Popela <tpopela@redhat.com> | 2016-02-16 16:06:17 +0100 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2016-02-16 16:06:17 +0100 |
commit | cce0f1118120c54d3f02b660145e0bf349d34341 (patch) | |
tree | b06e6202b6238a9f0b50c92cdc07476867d50608 | |
parent | 2f3690cde8b83227e6b3c4e02091d56077766f13 (diff) | |
download | libsoup-cce0f1118120c54d3f02b660145e0bf349d34341.tar.gz |
soup-auth-negotitate: Make the SoupAuth object reusable again
As per https://git.gnome.org/browse/libsoup/tree/libsoup/soup-auth-ntlm.c?h=wip/tpopela/negotiate&id=e7f914bf6ad1489baed0e7defa89126ba7132ac2#n295
-rw-r--r-- | libsoup/soup-auth-negotiate.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libsoup/soup-auth-negotiate.c b/libsoup/soup-auth-negotiate.c index 2508be53..e986edda 100644 --- a/libsoup/soup-auth-negotiate.c +++ b/libsoup/soup-auth-negotiate.c @@ -122,8 +122,7 @@ soup_auth_negotiate_update_connection (SoupConnectionAuth *auth, SoupMessage *ms if (!check_auth_trusted_uri (negotiate, msg)) { conn->state = SOUP_NEGOTIATE_FAILED; - - return FALSE; + return TRUE; } /* Found negotiate header with no token, start negotiate */ @@ -132,7 +131,7 @@ soup_auth_negotiate_update_connection (SoupConnectionAuth *auth, SoupMessage *ms /* If we were already negotiating and we get a 401 * with no token, that means we failed. */ conn->state = SOUP_NEGOTIATE_FAILED; - return FALSE; + return TRUE; } conn->state = SOUP_NEGOTIATE_RECEIVED_CHALLENGE; if (soup_gss_build_response (conn, SOUP_AUTH (auth), &err)) { @@ -163,12 +162,9 @@ soup_auth_negotiate_update_connection (SoupConnectionAuth *auth, SoupMessage *ms } g_clear_error (&err); - return FALSE; -#else - conn->state = SOUP_NEGOTIATE_FAILED; - - return FALSE; #endif /* LIBSOUP_HAVE_GSSAPI */ + conn->state = SOUP_NEGOTIATE_FAILED; + return TRUE; } static GSList * |