summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sip-connection.c10
1 files 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);