Browse Source

modules/sipcapture: a sip message must be stored after bad parsing also.

Alexandr Dubovikov 12 năm trước cách đây
mục cha
commit
3823001dd8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules/sipcapture/sipcapture.c

+ 1 - 1
modules/sipcapture/sipcapture.c

@@ -721,7 +721,7 @@ static int sip_capture_prepare(sip_msg_t *msg)
         /* We need parse all headers */
         if (parse_headers(msg, HDR_CALLID_F|HDR_EOH_F, 0) != 0) {
                 LM_ERR("cannot parse headers\n");
-                return -1;
+                return 0;
         }
 
         return 0;