Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int openreceivehandler(....)
- {
- ...
- int return_rtp = check_rtp_entry(ip);
- if (return_rtp < 0) {
- int return_value = populate_rtp_struct(return_rtp, ip,
- passthrupartyid,
- rtpport);
- if(return_value == -1) {
- return NULL;
- }
- } else {
- int return_value = populate_rtp_struct(return_rtp, ip,
- passthrupartyid,
- rtpport);
- if (return_value == -1) {
- return NULL;
- }
- }
- ...
- }
- This suspicious code was found in UCSniff project by PVS-Studio static code analyzer.
- Warning message is:
- V523 The 'then' statement is equivalent to the 'else' statement. ec_sccp.c 3216
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment