--- a/libpurple/plugins/keyrings/internalkeyring.c Fri Jul 19 03:15:58 2013 +0530 +++ b/libpurple/plugins/keyrings/internalkeyring.c Fri Jul 19 03:27:40 2013 +0530 @@ -469,6 +469,11 @@ const gchar *plaintext; gchar *ciphertext; + if (intkeyring_key == NULL) { + g_hash_table_remove(intkeyring_ciphertexts, account); + return; + } + ciphertext = g_hash_table_lookup(intkeyring_ciphertexts, account); if (ciphertext != NULL) return;