libpurple/plugins/keyrings/internalkeyring.c

branch
soc.2013.gobjectification
changeset 34828
4477544f42a3
parent 34569
8fdccc60cfde
parent 34252
4ca80adc2a4d
child 34874
e03d555394c5
child 36367
891eea799578
--- 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;

mercurial