forked from mirrors/linphone-iphone
fix crash in case of out of dialog NOTIFY rejected by application because unknown from
This commit is contained in:
parent
0e9de476d1
commit
054ecbbe90
2 changed files with 4 additions and 2 deletions
|
|
@ -32,7 +32,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
**/
|
||||
LinphoneAddress * linphone_address_new(const char *addr){
|
||||
SalAddress *saddr=sal_address_new(addr);
|
||||
if (saddr==NULL) ms_error("Cannot create LinphoneAddress, bad uri [%s]",addr);
|
||||
if (saddr==NULL)
|
||||
ms_error("Cannot create LinphoneAddress, bad uri [%s]",addr);
|
||||
return saddr;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -201,8 +201,9 @@ static void handle_notify(SalOp *op, belle_sip_request_t *req){
|
|||
} else {
|
||||
sub_state=SalSubscribeActive;
|
||||
}
|
||||
resp = sal_op_create_response_from_request(op, req, 200); /*answer first because the op may be destroyed by notify_presence */
|
||||
op->base.root->callbacks.notify_presence(op, sub_state, presence_model, NULL);
|
||||
resp = sal_op_create_response_from_request(op, req, 200);
|
||||
|
||||
} else {
|
||||
/* Formatting error in presence notification body. */
|
||||
ms_error("Wrongly formatted presence notification received");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue