Skip to content

Commit

Permalink
rls: properly check parse_from_uri() return code
Browse files Browse the repository at this point in the history
Fixes Coverity CID 40490

(cherry picked from commit b310986c6f0a2d76f2092433f06d8cb94e1f08fc)
  • Loading branch information
razvancrainea committed Nov 10, 2016
1 parent 93fd2b0 commit 65f5914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/rls/subscribe.c
Expand Up @@ -526,7 +526,7 @@ int rls_handle_subscribe(struct sip_msg* msg, char* s1, char* s2)
goto error;
}

if(parse_from_uri(msg)<0)
if(parse_from_uri(msg)==0)
{
LM_ERR("failed to parse From header\n");
goto error;
Expand Down

0 comments on commit 65f5914

Please sign in to comment.