From c39c093fa5bb7907143c6f06ee06a1a88ea788f1 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 27 Apr 2014 00:32:04 +0100 Subject: Tidied UI messages for SMP shared secret authentication --- src/otr/otr.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/otr/otr.c') diff --git a/src/otr/otr.c b/src/otr/otr.c index 348b7620..e246748b 100644 --- a/src/otr/otr.c +++ b/src/otr/otr.c @@ -407,6 +407,7 @@ _otr_smp_secret(const char * const recipient, const char *secret) // if recipient initiated SMP, send response, else initialise if (g_hash_table_contains(smp_initiators, recipient)) { otrl_message_respond_smp(user_state, &ops, NULL, context, (const unsigned char*)secret, strlen(secret)); + g_hash_table_remove(smp_initiators, context->username); } else { otrl_message_initiate_smp(user_state, &ops, NULL, context, (const unsigned char*)secret, strlen(secret)); } -- cgit 1.4.1-2-gfad0