]> sjero.net Git - linphone/commitdiff
fix bad free and stupid abort()
authorSimon Morlat <simon.morlat@linphone.org>
Fri, 11 Feb 2011 15:30:59 +0000 (16:30 +0100)
committerSimon Morlat <simon.morlat@linphone.org>
Fri, 11 Feb 2011 15:30:59 +0000 (16:30 +0100)
coreapi/sal.c
coreapi/sal_eXosip2.c
coreapi/sal_eXosip2_sdp.c
mediastreamer2

index ec8a6fc6d1561e20f37399d2a2eb44bb1a65379d..b25f3945130230a8fdc487d701bdb8e8cfe82c3c 100644 (file)
@@ -150,7 +150,6 @@ static bool_t payload_list_equals(const MSList *l1, const MSList *l2){
        }
        if (e1!=NULL || e2!=NULL){
                /*means one list is longer than the other*/
-               abort();
                return FALSE;
        }
        return TRUE;
index 61c7c494d036d20041bb0c8f494bc1c5a8836561..2eb9a0c32917fa18e83f334eb5eb0a13212ee117 100644 (file)
@@ -2030,7 +2030,7 @@ int sal_call_update(SalOp *h, const char *subject){
        osip_message_t *reinvite=NULL;
 
        eXosip_lock();
-       if(eXosip_call_build_request(h->did,"INVITE",&reinvite) != OSIP_SUCCESS || reinvite==NULL){
+       if(eXosip_call_build_request(h->did,"INVITE",&reinvite) != 0 || reinvite==NULL){
                eXosip_unlock();
                return -1;
        }
index 848e3070c9986ba95cf96d8a7a0c8d408729b67c..70443c722ac8e0c35acd3d40b0c022da27b20b0c 100644 (file)
@@ -328,9 +328,6 @@ int sdp_to_media_description(sdp_message_t *msg, SalMediaDescription *desc){
                        stream->type=SalVideo;
                }else {
                        stream->type=SalOther;
-                       if (stream->typeother){
-                               ms_free(stream->typeother);
-                       }
                        strncpy(stream->typeother,mtype,sizeof(stream->typeother)-1);
                }
                for(j=0;(sbw=sdp_message_bandwidth_get(msg,i,j))!=NULL;++j){
index cf11f11804476639cf4aa578cb5e04976b09f5c3..b9a6dad7339175e894d1a0f291ccb5d1143e3199 160000 (submodule)
@@ -1 +1 @@
-Subproject commit cf11f11804476639cf4aa578cb5e04976b09f5c3
+Subproject commit b9a6dad7339175e894d1a0f291ccb5d1143e3199