]> sjero.net Git - linphone/commitdiff
Fix crash.
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Mon, 3 Sep 2012 11:18:40 +0000 (13:18 +0200)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Mon, 3 Sep 2012 11:18:40 +0000 (13:18 +0200)
coreapi/sal_eXosip2.c

index 10d0459b46692136ae85e845423dfda9a38764a8..447ce34eb359432277fd3b6c556f6b9a9f77e338 100644 (file)
@@ -1954,12 +1954,12 @@ static bool_t registration_failure(Sal *sal, eXosip_event_t *ev){
 static void other_request_reply(Sal *sal,eXosip_event_t *ev){
        SalOp *op=find_op(sal,ev);
        LinphoneChatMessage* chat_msg;
-       ms_message("Processing reponse status [%i] for method [%s]",ev->response->status_code,osip_message_get_method(ev->request));
        if (op==NULL){
                ms_warning("other_request_reply(): Receiving response to unknown request.");
                return;
        }
        if (ev->response){
+               ms_message("Processing reponse status [%i] for method [%s]",ev->response->status_code,osip_message_get_method(ev->request));
                update_contact_from_response(op,ev->response);
                if (ev->request && strcmp(osip_message_get_method(ev->request),"OPTIONS")==0)
                        sal->callbacks.ping_reply(op);