Sun, 16 Aug 2009 03:21:47 +0000
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.
| pidgin/gtkcertmgr.c | file | annotate | diff | comparison | revisions |
--- 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);