Mercurial > pidgin.yaz
changeset 28265:0db08d748475
Don't try to write a cert with a blank filename.
This *should* throw an error, probably, but I'm lazy. This is better
than the previous behavior.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 16 Aug 2009 03:21:47 +0000 |
parents | 027f342110b6 |
children | 6b05a0e36ffb |
files | pidgin/gtkcertmgr.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkcertmgr.c Sat Aug 15 19:59:14 2009 +0000 +++ b/pidgin/gtkcertmgr.c Sun Aug 16 03:21:47 2009 +0000 @@ -144,12 +144,12 @@ tls_peers_mgmt_import_ok2_cb(gpointer data, const char *result) { PurpleCertificate *crt = (PurpleCertificate *) data; - const char *id = result; /* TODO: Perhaps prompt if you're overwriting a cert? */ /* Drop the certificate into the pool */ - purple_certificate_pool_store(tpm_dat->tls_peers, id, crt); + if (result && *result) + purple_certificate_pool_store(tpm_dat->tls_peers, result, crt); /* And this certificate is not needed any more */ purple_certificate_destroy(crt);