Skip to content

Commit

Permalink
fix crashing bug when unregister with contact *
Browse files Browse the repository at this point in the history
  • Loading branch information
davehorton committed Dec 31, 2024
1 parent e8bb445 commit 5308b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sip-dialog-controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ namespace drachtio {
if( add ) {
theOneAndOnlyController->cacheTportForSubscription( contact->m_url->url_user, contact->m_url->url_host, expires, tp ) ;
}
else {
else if (contact->m_url->url_host) {
theOneAndOnlyController->flushTportForSubscription( contact->m_url->url_user, contact->m_url->url_host ) ;
}
}
Expand Down

0 comments on commit 5308b23

Please sign in to comment.