Skip to content

Commit

Permalink
core: debug message when dropping a sip reply
Browse files Browse the repository at this point in the history
(cherry picked from commit e4d2ca2)
  • Loading branch information
miconda committed Sep 10, 2018
1 parent dd9bc54 commit ff6af9e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/core/receive.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,11 @@ int receive_msg(char *buf, unsigned int len, struct receive_info *rcv_info)
goto error_rpl;
} else
#endif /* NO_ONREPLY_ROUTE_ERROR */
if(unlikely(ret == 0 || (ctx.run_flags & DROP_R_F))) {
STATS_RPL_FWD_DROP();
goto skip_send_reply; /* drop the message, no error */
}
if(unlikely(ret == 0 || (ctx.run_flags & DROP_R_F))) {
STATS_RPL_FWD_DROP();
LM_DBG("drop flag set - skip forwarding the reply\n");
goto skip_send_reply; /* drop the message, no error */
}
}
/* send the msg */
forward_reply(msg);
Expand Down

0 comments on commit ff6af9e

Please sign in to comment.