#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/print-isakmp.c,v 1.41 2003-12-20 10:03:19 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-isakmp.c,v 1.42 2004-01-07 08:00:51 hannes Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
static u_char *p;
size_t i;
+ TCHECK2(*loc, len);
+
p = (u_char *)loc;
for (i = 0; i < len; i++)
printf("%02x", p[i] & 0xff);
+trunc:
+
}
struct attrmap {
cp = (const u_char *)ext;
while (np) {
+ TCHECK2(*ext, sizeof(e));
+
safememcpy(&e, ext, sizeof(e));
if (ep < (u_char *)ext + ntohs(e.len)) {
ext = (struct isakmp_gen *)cp;
}
return cp;
+trunc:
+ return NULL;
}
static char *
#ifndef lint
static const char rcsid[] _U_ =
- "$Id: print-radius.c,v 1.23 2003-12-15 13:52:15 hannes Exp $";
+ "$Id: print-radius.c,v 1.24 2004-01-07 08:00:52 hannes Exp $";
#endif
#ifdef HAVE_CONFIG_H
break;
}
- for (i=0; i < length ; i++, data++)
+ for (i=0; *data && i < length ; i++, data++)
printf("%c",(*data < 32 || *data > 128) ? '.' : *data );
return;