]> sjero.net Git - linphone/commitdiff
fix big bug in receiving of text message
authorSimon Morlat <simon.morlat@linphone.org>
Thu, 8 Nov 2012 22:38:24 +0000 (23:38 +0100)
committerSimon Morlat <simon.morlat@linphone.org>
Thu, 8 Nov 2012 22:38:24 +0000 (23:38 +0100)
coreapi/sal_eXosip2.c

index 2f6d4ae80e620c126cfba75de38c472a67e129f6..460463794869ab7f94c2dceb6b01238692d54ba8 100644 (file)
@@ -1750,7 +1750,7 @@ static void text_received(Sal *sal, eXosip_event_t *ev){
                        return;
                }
                msg=body->body;
-       } if (content_type->type 
+       }else if (content_type->type 
                  && strcmp(content_type->type, "message")==0 
                  && content_type->subtype
                  && strcmp(content_type->subtype, "external-body")==0 ) {
@@ -1796,7 +1796,7 @@ static void other_request(Sal *sal, eXosip_event_t *ev){
                }else ms_warning("Ignored REFER not coming from this local loopback interface.");
        }else if (strncmp(ev->request->sip_method, "UPDATE", 6) == 0){
                inc_update(sal,ev);
-    }else {
+       }else {
                char *tmp=NULL;
                size_t msglen=0;
                osip_message_to_str(ev->request,&tmp,&msglen);