Mercurial > pidgin.yaz
changeset 27612:18a96fe78870
Don't fail an assertion and don't return FALSE if we can't create
the certificate cache directory. This happens when passing -c /dev/null
to pidgin when starting. I think this is a reasonable change, but
I'm not very familiar with our certificate code
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 14 Jul 2009 17:56:13 +0000 |
parents | 6428ebfbc893 |
children | 32d2caa6a777 0a0ece3477af |
files | libpurple/certificate.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/certificate.c Tue Jul 14 17:40:04 2009 +0000 +++ b/libpurple/certificate.c Tue Jul 14 17:56:13 2009 +0000 @@ -923,9 +923,13 @@ poolpath = purple_certificate_pool_mkpath(&x509_tls_peers, NULL); ret = purple_build_dir(poolpath, 0700); /* Make it this user only */ + if (ret != 0) + purple_debug_info("certificate/tls_peers", + "Could not create %s. Certificates will not be cached.\n", + poolpath); + g_free(poolpath); - g_return_val_if_fail(ret == 0, FALSE); return TRUE; }