summaryrefslogtreecommitdiff
path: root/print-udp.c
diff options
context:
space:
mode:
authorhannes <hannes>2002-12-04 19:09:29 +0000
committerhannes <hannes>2002-12-04 19:09:29 +0000
commitb34c1cc75009cdd36d008066f5b11de75e9ccee0 (patch)
tree872193b887d95b2700a504f862b0618bbd805d1c /print-udp.c
parent676b2ceedb7f8b0141a82a9104484e02a801b3c4 (diff)
downloadtcpdump-b34c1cc75009cdd36d008066f5b11de75e9ccee0.tar.gz
changed bootp decoder for multiline output, fixed segfault referencing NULL pointer
Diffstat (limited to 'print-udp.c')
-rw-r--r--print-udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-udp.c b/print-udp.c
index 057cb141..ffbe5d1e 100644
--- a/print-udp.c
+++ b/print-udp.c
@@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.111 2002-11-09 17:19:30 itojun Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.112 2002-12-04 19:09:30 hannes Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
@@ -602,7 +602,7 @@ udp_print(register const u_char *bp, u_int length,
else if (ISPORT(TFTP_PORT))
tftp_print((const u_char *)(up + 1), length);
else if (ISPORT(IPPORT_BOOTPC) || ISPORT(IPPORT_BOOTPS))
- bootp_print((const u_char *)(up + 1), sport, dport);
+ bootp_print((const u_char *)(up + 1), sport, dport, length);
else if (ISPORT(RIP_PORT))
rip_print((const u_char *)(up + 1), length);
else if (ISPORT(ISAKMP_PORT))