From d382e81e662b02f50a14bf43056e76dca5dfcaa5 Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Tue, 8 Nov 2011 19:21:54 +0200 Subject: Don't prevent asking the client for a password in foreign realms We are even more interested in prompting for this case than we are in the normal registration auth case. "extra-auth-user" is a hack from the time when we did not have ServerAuthentication. --- src/sip-connection.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sip-connection.c b/src/sip-connection.c index 5eb671c..22681d8 100644 --- a/src/sip-connection.c +++ b/src/sip-connection.c @@ -725,9 +725,6 @@ priv_handle_auth (RakiaConnection* self, /* fall back to the main username */ user = priv->auth_user; password = priv->extra_auth_password; - if (password == NULL) - /* note that this prevents asking the user for a password */ - password = ""; DEBUG("using the extra auth credentials"); } @@ -790,8 +787,11 @@ priv_password_manager_prompt_cb (GObject *source_object, password = password_string->str; /* also save it for later. */ - g_free (priv->password); - priv->password = g_strdup (password); + if (data->connection_auth) + { + g_free (priv->password); + priv->password = g_strdup (password); + } priv_handle_auth_continue (data->self, data->nh, data->method, data->realm, data->user, password); -- cgit v1.2.3