[Pkg-privacy-commits] [libotr] 75/225: Context was still not getting added to correct location sometimes.
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 12:44:58 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 fbce3d1bd8d3812738d0d996867846e33eb0a40b
Author: Rob Smits <rdfsmits at cs.uwaterloo.ca>
Date: Wed Jun 13 17:17:55 2012 -0400
Context was still not getting added to correct location sometimes.
---
src/context.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/context.c b/src/context.c
index 43a4b0c..b014819 100644
--- a/src/context.c
+++ b/src/context.c
@@ -176,10 +176,10 @@ ConnContext * otrl_context_find(OtrlUserState us, const char *user,
(usercmp == 0 &&
(acctcmp = strcmp((*curp)->accountname, accountname)) > 0) ||
(usercmp == 0 && acctcmp == 0 &&
- (protocmp = strcmp((*curp)->protocol, protocol)) >= 0) ||
+ (protocmp = strcmp((*curp)->protocol, protocol)) > 0) ||
(usercmp == 0 && acctcmp == 0 && protocmp == 0
&& (their_instance < OTRL_MIN_VALID_INSTAG ||
- (their_instance == (*curp)->their_instance))))
+ (their_instance <= (*curp)->their_instance))))
/* We're at the right place in the list. We've either found
* it, or gone too far. */
break;
--
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