From feef7fbf2755149c57fafd227003253cfb8ee5b0 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 24 May 2006 01:42:17 +0000 Subject: Please use portable C code --- usr.sbin/tcpdump/print-vqp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/tcpdump/print-vqp.c b/usr.sbin/tcpdump/print-vqp.c index 13cedec4d2c..ad39386543b 100644 --- a/usr.sbin/tcpdump/print-vqp.c +++ b/usr.sbin/tcpdump/print-vqp.c @@ -223,10 +223,12 @@ vqp_print(const u_char *bp, u_int len) dcount = p->dcount; while (vflag && dcount > 0) { + u_int type, length; + TCHECK2(bp[0], 6); - u_int type = EXTRACT_32BITS(bp); + type = EXTRACT_32BITS(bp); bp += 4; - u_int length = EXTRACT_16BITS(bp); + length = EXTRACT_16BITS(bp); bp += 2; TCHECK2(bp[0], length); vqp_print_type(type, length, bp); -- cgit v1.2.3