# HG changeset patch # User Paul Aurich # Date 1250392907 0 # Node ID 0db08d7484755b13042e42795d1274a97df32676 # Parent 027f342110b65bb1a9799080759dbbf3f90d6228 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. diff -r 027f342110b6 -r 0db08d748475 pidgin/gtkcertmgr.c --- 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);