diff options
| author | Rui Paulo <rpaulo@FreeBSD.org> | 2010-10-28 16:23:25 +0000 |
|---|---|---|
| committer | Rui Paulo <rpaulo@FreeBSD.org> | 2010-10-28 16:23:25 +0000 |
| commit | 6d59e2f382406def185ce5261b8723a174cd28a3 (patch) | |
| tree | 554972ce0ce297205c6d41cc6fc9a8a393910a6f /print-sip.c | |
| parent | 0ea0e7ad03dff03bb5448f640640d7904c01c8d4 (diff) | |
Notes
Diffstat (limited to 'print-sip.c')
| -rw-r--r-- | print-sip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/print-sip.c b/print-sip.c index 48562f8c38bc..c5bc8534daaa 100644 --- a/print-sip.c +++ b/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]"); } |
