Commit 2edaaacf authored by David Goulet's avatar David Goulet Committed by Ian Goldberg

Fix: otrl_context_forget() wrong check in iter loop

Ref:
https://lists.cypherpunks.ca/pipermail/otr-dev/2014-September/002199.html

Fixes #53Reported-by: 's avatark007k <k007k@wp.pl>
Signed-off-by: 's avatarDavid Goulet <dgoulet@ev0ke.net>
Signed-off-by: 's avatarIan Goldberg <iang@cs.uwaterloo.ca>
parent b7eba2c8
......@@ -483,7 +483,7 @@ int otrl_context_forget(ConnContext *context)
for (c_iter = context; c_iter &&
c_iter->m_context == context->m_context;
c_iter = c_iter->next) {
if (context->msgstate != OTRL_MSGSTATE_PLAINTEXT) return 1;
if (c_iter->msgstate != OTRL_MSGSTATE_PLAINTEXT) return 1;
}
c_iter = context->next;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment