Skip to content

Commit

Permalink
[presence] Proper testing for the return code of get_body()
Browse files Browse the repository at this point in the history
Reported by coverity CID 207911
  • Loading branch information
bogdan-iancu committed Jul 15, 2020
1 parent f3530c1 commit 11e63b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/presence/subscribe.c
Expand Up @@ -963,9 +963,7 @@ int extract_sdialog_info(subs_t* subs, struct sip_msg* msg, int mexp, int* init_
return -2;
}

get_body(msg, &subs->subs_body);

return 0;
return get_body(msg, &subs->subs_body);
}


Expand Down

0 comments on commit 11e63b3

Please sign in to comment.