]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6688: #resolve fix resubscribe through proxy with record route when the resub...
authorMichael Jerris <mike@jerris.com>
Wed, 7 Jan 2015 22:41:19 +0000 (17:41 -0500)
committerMichael Jerris <mike@jerris.com>
Wed, 7 Jan 2015 22:41:19 +0000 (17:41 -0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 550d0e874aab7d6f3a18909f0956a2b2f7d4dbc3..5520e6ec7618efea1e0079910a929e41aa9da3f4 100644 (file)
@@ -3906,8 +3906,8 @@ void sofia_presence_handle_sip_i_subscribe(int status,
                
                if (strstr(buf, "fs_path=") && !strstr(contact_str, "fs_path=")) {
                        char *e = strchr(buf,';');
-                       size_t l = e ? buf-e : strlen(buf);
-                       if (strncmp(contact_str,buf,l)) {
+                       size_t l = e ? e-buf : strlen(buf);
+                       if (!strncmp(contact_str,buf,l)) {
                                contact = buf;
                        }
                }