From 891191f1ca700444bb7fde21e4e41d63dbfec8dc Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Tue, 7 Dec 2010 20:55:06 +0200 Subject: [PATCH] Fix #3130915: Failed to authenticate to server Revert one part of commit 68e7269d41cff7be306940d61a90e5f6f2d22981. An empty string is now allowed again for the NTLM domain. --- src/core/sip-sec-ntlm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/sip-sec-ntlm.c b/src/core/sip-sec-ntlm.c index 870b8f99..8540787b 100644 --- a/src/core/sip-sec-ntlm.c +++ b/src/core/sip-sec-ntlm.c @@ -1686,8 +1686,8 @@ sip_sec_acquire_cred__ntlm(SipSecContext context, { context_ntlm ctx = (context_ntlm)context; - /* NTLM requires a domain, username & password */ - if (is_empty(domain) || is_empty(username) || is_empty(password)) + /* NTLM requires a username & password. Domain may be empty */ + if (!domain || is_empty(username) || is_empty(password)) return SIP_SEC_E_INTERNAL_ERROR; ctx->domain = g_strdup(domain); -- 2.11.4.GIT