[libsoup] soup-auth-ntlm: fix build with --without-ntlm-auth



commit 38cbd9905ea3f87bab16663a90375dbd48b75b49
Author: Dan Winship <danw gnome org>
Date:   Thu Oct 17 18:03:05 2013 -0400

    soup-auth-ntlm: fix build with --without-ntlm-auth
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710267

 libsoup/soup-auth-ntlm.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-auth-ntlm.c b/libsoup/soup-auth-ntlm.c
index 19be692..0554197 100644
--- a/libsoup/soup-auth-ntlm.c
+++ b/libsoup/soup-auth-ntlm.c
@@ -309,13 +309,17 @@ soup_auth_ntlm_update_connection (SoupConnectionAuth *auth, SoupMessage *msg,
                        return TRUE;
                }
 
+#ifdef USE_NTLM_AUTH
                if (priv->sso_available) {
                        conn->state = SOUP_NTLM_SSO_FAILED;
                        priv->password_state = SOUP_NTLM_PASSWORD_NONE;
                } else {
+#endif
                        conn->state = SOUP_NTLM_FAILED;
                        priv->password_state = SOUP_NTLM_PASSWORD_REJECTED;
+#ifdef USE_NTLM_AUTH
                }
+#endif
                return TRUE;
        }
 


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