[libsoup/wip/tpopela/negotiate] soup-auth-negotiate: Check if the authentications are the same before checking server response



commit cc9c1fbdddc89820c13b40a004aa9938399ff2c7
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Feb 19 14:12:31 2016 +0100

    soup-auth-negotiate: Check if the authentications are the same before checking server response

 libsoup/soup-auth-negotiate.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-auth-negotiate.c b/libsoup/soup-auth-negotiate.c
index 37caaa5..4314128 100644
--- a/libsoup/soup-auth-negotiate.c
+++ b/libsoup/soup-auth-negotiate.c
@@ -301,6 +301,9 @@ check_server_response (SoupMessage *msg, gpointer auth)
        SoupAuthNegotiatePrivate *priv = SOUP_AUTH_NEGOTIATE_GET_PRIVATE (negotiate);
        SoupNegotiateConnectionState *conn = priv->conn_state;
 
+       if (auth != soup_message_get_auth (msg))
+               return;
+
        if (msg->status_code == SOUP_STATUS_UNAUTHORIZED)
                return;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]