]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6806 #resolve #comment off by 1 error in last fix
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 10 Sep 2014 15:32:36 +0000 (20:32 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 10 Sep 2014 16:06:52 +0000 (21:06 +0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index f866985a66165b2cfe900b530902817f97077360..b1bc009df5f9e740d8bb508c1feb12a94e2c0a02 100644 (file)
@@ -2132,7 +2132,7 @@ static uint32_t sofia_presence_get_cseq(sofia_profile_t *profile)
 
        if (profile->last_cseq) {
                diff = callsequence - profile->last_cseq;
-               if (diff < 0 && diff > -100000) {
+               if (diff <= 0 && diff > -100000) {
                        callsequence = ++profile->last_cseq;
                }
        }