fix bad free and stupid abort()

This commit is contained in:
Simon Morlat 2011-02-11 16:30:59 +01:00
parent 4967b61454
commit 5de1f11f05
4 changed files with 2 additions and 6 deletions

View 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;

View 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;
}

View 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){

@ -1 +1 @@
Subproject commit cf11f11804476639cf4aa578cb5e04976b09f5c3
Subproject commit b9a6dad7339175e894d1a0f291ccb5d1143e3199