Skip to content

Commit

Permalink
Merge pull request #817 from snen/presentity_dialog_id_null_fix
Browse files Browse the repository at this point in the history
presence: fix crush if dialog id is NULL
  • Loading branch information
miconda committed Oct 10, 2016
2 parents 5806703 + d68d012 commit fa724d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/presence/presentity.c
Expand Up @@ -691,7 +691,7 @@ int update_presentity(struct sip_msg* msg, presentity_t* presentity, str* body,
}

check_if_dialog(*body, &is_dialog, &dialog_id);
if (is_dialog == 1) {
if ( dialog_id ) {
if (delete_presentity_if_dialog_id_exists(presentity, dialog_id) < 0) {
goto error;
}
Expand Down

0 comments on commit fa724d2

Please sign in to comment.