From 96ee7822fc79f7eab3a78e0492458e7d82a47726 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 8 Jun 2005 14:35:47 +0000 Subject: [PATCH] Fix this to use just the domain name for the domain, not the whole * libsoup/soup-connection-ntlm.c (ntlm_authorize_pre): Fix this to use just the domain name for the domain, not the whole DOMAIN\username. Based on a patch by Jeroen Hautekeete in #306877. --- ChangeLog | 6 ++++++ libsoup/soup-connection-ntlm.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7344a40..6a8d937 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-06-08 Dan Winship + + * libsoup/soup-connection-ntlm.c (ntlm_authorize_pre): Fix this to + use just the domain name for the domain, not the whole + DOMAIN\username. Based on a patch by Jeroen Hautekeete in #306877. + 2005-05-26 Dan Winship * libsoup/soup-session.c (cleanup_hosts): lock host_lock around diff --git a/libsoup/soup-connection-ntlm.c b/libsoup/soup-connection-ntlm.c index 5cc1eaa..6e284e2 100644 --- a/libsoup/soup-connection-ntlm.c +++ b/libsoup/soup-connection-ntlm.c @@ -126,8 +126,10 @@ ntlm_authorize_pre (SoupMessage *msg, gpointer user_data) slash = strpbrk (domain_username, "\\/"); if (slash) { g_free (domain); - domain = g_strdup (domain_username); + *slash = '\0'; + domain = domain_username; username = slash + 1; + domain_username = NULL; } else username = domain_username; -- 2.7.4