diff options
Diffstat (limited to 'contrib/tcpdump/print-sip.c')
-rw-r--r-- | contrib/tcpdump/print-sip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/tcpdump/print-sip.c b/contrib/tcpdump/print-sip.c index 48562f8..c5bc853 100644 --- a/contrib/tcpdump/print-sip.c +++ b/contrib/tcpdump/print-sip.c @@ -44,6 +44,7 @@ sip_print(register const u_char *pptr, register u_int len) return; for (idx = 0; idx < len; idx++) { + TCHECK2(*(pptr+idx), 2); if (EXTRACT_16BITS(pptr+idx) != 0x0d0a) { /* linefeed ? */ safeputchar(*(pptr+idx)); } else { @@ -57,4 +58,7 @@ sip_print(register const u_char *pptr, register u_int len) print_unknown_data(pptr,"\n\t",len); return; + +trunc: + printf("[|sip]"); } |