Skip to content

Commit

Permalink
drouting: fix crush for empty username in ruri
Browse files Browse the repository at this point in the history
 - uri like sip:@host crushed kamailio

(cherry picked from commit e4f3849)
  • Loading branch information
snen authored and henningw committed Aug 23, 2018
1 parent 5b31b87 commit 7ab0b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/drouting/prefix_tree.c
Expand Up @@ -115,7 +115,7 @@ get_prefix(

if(NULL == ptree)
goto err_exit;
if(NULL == prefix)
if(NULL == prefix || NULL == prefix->s)
goto err_exit;
tmp = prefix->s;
/* go the tree down to the last digit in the
Expand Down

0 comments on commit 7ab0b1c

Please sign in to comment.