summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2016-02-19 13:03:37 +0100
committerTomas Popela <tpopela@redhat.com>2016-02-19 13:03:37 +0100
commit8a882ffb6638024dd1257280a43a8862b750870b (patch)
treea64d2d30df533a9370b67e065f52d2f3fbf6f6cd
parenta0d26748697699f566084a6aaf875a05277b3926 (diff)
downloadlibsoup-8a882ffb6638024dd1257280a43a8862b750870b.tar.gz
soup-auth-negotiate: Don't fail if the authentication is still in progress
-rw-r--r--libsoup/soup-auth-negotiate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libsoup/soup-auth-negotiate.c b/libsoup/soup-auth-negotiate.c
index e986edda..a5cf16e8 100644
--- a/libsoup/soup-auth-negotiate.c
+++ b/libsoup/soup-auth-negotiate.c
@@ -286,7 +286,9 @@ check_server_response (SoupMessage *msg, gpointer state)
ret = soup_gss_client_step (conn, auth_headers + 10, &err);
- if (ret != AUTH_GSS_COMPLETE) {
+ if (ret == AUTH_GSS_CONTINUE) {
+ conn->state = SOUP_NEGOTIATE_RECEIVED_CHALLENGE;
+ } else if (ret == AUTH_GSS_ERROR) {
if (err)
g_warning ("%s", err->message);
conn->state = SOUP_NEGOTIATE_FAILED;