]> 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 15:32:36 +0000 (20:32 +0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index a48e00fcbd9ae63aadfb67a52209f6d99f0722ed..a7e4e6f78f162060c946b2cd4adf8d5a4838a6c6 100644 (file)
@@ -2140,7 +2140,7 @@ 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;
                }
        }