Skip to content

Commit

Permalink
Fixed keeping turns on handling PUBLISHes for the same presentity - w…
Browse files Browse the repository at this point in the history
…hen presentity is deleted (due a unPUBLISH) do not do any turn related ops anymore

Reported by Damien Sanders
  • Loading branch information
bogdan-iancu committed Nov 20, 2013
1 parent b674730 commit da06d87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/presence/presentity.c
Expand Up @@ -610,6 +610,8 @@ int update_presentity(struct sip_msg* msg, presentity_t* presentity, int* sent_r
{
LM_ERR("deleting record from hash table failed\n");
}
/* presentity removed, pointer no longer valid */
p = NULL;

lock_release(&pres_htable[hash_code].lock);
if( publ_send200ok(msg, presentity->expires, presentity->etag)< 0)
Expand Down

0 comments on commit da06d87

Please sign in to comment.