core: debug message when dropping a sip reply
authorDaniel-Constantin Mierla <miconda@gmail.com>
Fri, 24 Aug 2018 06:50:36 +0000 (08:50 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Fri, 24 Aug 2018 06:50:36 +0000 (08:50 +0200)
src/core/receive.c

index 9a385e4..df8db65 100644 (file)
@@ -415,10 +415,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);