diff options
author | James Booth <boothj5@gmail.com> | 2014-04-27 00:32:04 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-04-27 00:32:04 +0100 |
commit | c39c093fa5bb7907143c6f06ee06a1a88ea788f1 (patch) | |
tree | fdb8ab9d5c47e1835ca07cd9f14a7c48eb0f8478 /src/otr/otr.c | |
parent | 84c7fc9ae0453ecc2b95151ec5e15e28476f0d79 (diff) | |
download | profani-tty-c39c093fa5bb7907143c6f06ee06a1a88ea788f1.tar.gz |
Tidied UI messages for SMP shared secret authentication
Diffstat (limited to 'src/otr/otr.c')
-rw-r--r-- | src/otr/otr.c | 1 |
1 files changed, 1 insertions, 0 deletions
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)); } |