[Pkg-privacy-commits] [libotr] 198/225: Fix: otrl_context_forget() wrong check in iter loop

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:45:32 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository libotr.

commit 2edaaacf09e20ae00ac41634862b5f5a77a724b4
Author: David Goulet <dgoulet at ev0ke.net>
Date:   Mon Oct 13 13:53:36 2014 -0400

    Fix: otrl_context_forget() wrong check in iter loop
    
    Ref:
    https://lists.cypherpunks.ca/pipermail/otr-dev/2014-September/002199.html
    
    Fixes #53
    
    Reported-by: k007k <k007k at wp.pl>
    Signed-off-by: David Goulet <dgoulet at ev0ke.net>
    Signed-off-by: Ian Goldberg <iang at cs.uwaterloo.ca>
---
 src/context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/context.c b/src/context.c
index f5e916c..223ffe4 100644
--- a/src/context.c
+++ b/src/context.c
@@ -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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/libotr.git



More information about the Pkg-privacy-commits mailing list