Skip to content

Commit

Permalink
osp: fix pointer null check
Browse files Browse the repository at this point in the history
  • Loading branch information
l2dy committed Mar 12, 2020
1 parent 72da87b commit 5f1068c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/osp/cnam.c
Expand Up @@ -64,9 +64,9 @@ static int ospParseSubscribe(
LM_ERR("failed to parse message\n");
} else if (parse_sip_msg_uri(msg) < 0) {
LM_ERR("failed to parse ruri\n");
} else if (parse_from_uri(msg) < 0) {
} else if (parse_from_uri(msg) == NULL) {
LM_ERR("failed to parse from\n");
} else if (parse_to_uri(msg) < 0) {
} else if (parse_to_uri(msg) == NULL) {
LM_ERR("failed to parse to\n");
} else if ((msg->contact == NULL) || (msg->contact->body.len <= 0) || (parse_contact(msg->contact) < 0)) {
LM_ERR("failed to parse contact\n");
Expand Down

0 comments on commit 5f1068c

Please sign in to comment.