* libsoup/soup-connection-ntlm.c (ntlm_authorize_pre): Don't crash
if the authenticate callback returns a username and no password
(even though it's not supposed to do that). #480987
svn path=/trunk/; revision=935
+2007-10-05 Dan Winship <danw@gnome.org>
+
+ * libsoup/soup-connection-ntlm.c (ntlm_authorize_pre): Don't crash
+ if the authenticate callback returns a username and no password
+ (even though it's not supposed to do that). #480987
+
2007-09-24 Dan Winship <danw@gnome.org>
* libsoup/soup-auth.h (SoupAuth): add "realm" field to the struct.
soup_connection_authenticate (SOUP_CONNECTION (ntlm), msg,
"NTLM", domain,
&domain_username, &password);
- if (!domain_username) {
+ if (!domain_username || !password) {
g_free (nonce);
g_free (domain);
+ g_free (domain_username);
+ g_free (password);
goto done;
}