From a4f57fbbde67f1423a741b898d51773310a8c696 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 12 Apr 2001 22:23:56 +0000 Subject: If the service is NULL, just use the item as the key. 2001-04-12 Jeffrey Stedfast * session.c (auth_callback): If the service is NULL, just use the item as the key. svn path=/trunk/; revision=9288 --- mail/session.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'mail/session.c') diff --git a/mail/session.c b/mail/session.c index d95367d77c..28694f39a1 100644 --- a/mail/session.c +++ b/mail/session.c @@ -125,9 +125,12 @@ auth_callback (CamelAuthCallbackMode mode, char *data, gboolean secret, char *key, *ans, *url; gboolean accept; - url = camel_url_to_string (service->url, CAMEL_URL_HIDE_PASSWORD | CAMEL_URL_HIDE_PARAMS); - key = g_strdup_printf ("%s:%s", url, item); - g_free (url); + if (service) { + url = camel_url_to_string (service->url, CAMEL_URL_HIDE_PASSWORD | CAMEL_URL_HIDE_PARAMS); + key = g_strdup_printf ("%s:%s", url, item); + g_free (url); + } else + key = g_strdup (item); switch (mode) { case CAMEL_AUTHENTICATOR_TELL: -- cgit v1.2.3