diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2001-10-24 12:05:12 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2001-10-24 12:05:12 +0000 |
commit | a8300e86e7f5e26893c1db0e382f2f2ce983954c (patch) | |
tree | d5f0eb65feb0b7d7d8f53393b94d9af2d78c6276 /usr.sbin/tcpdump/print-radius.c | |
parent | 17fd9c15efed5b9f8b80a23a03fc4f4cd3c43987 (diff) |
Avoid segv with some radius traffic. Fixes PR# 2135.
Diffstat (limited to 'usr.sbin/tcpdump/print-radius.c')
-rw-r--r-- | usr.sbin/tcpdump/print-radius.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-radius.c b/usr.sbin/tcpdump/print-radius.c index f90ed349c4b..6aa28e13451 100644 --- a/usr.sbin/tcpdump/print-radius.c +++ b/usr.sbin/tcpdump/print-radius.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-radius.c,v 1.5 2001/08/21 06:21:29 jakob Exp $ */ +/* $OpenBSD: print-radius.c,v 1.6 2001/10/24 12:05:11 ho Exp $ */ /* * Copyright (c) 1997 Thomas H. Ptacek. All rights reserved. @@ -171,7 +171,7 @@ static void r_print_att(int code, int len, const u_char *data) { fprintf(stdout, " %s =", atp->name); if(atp->encoding == RD_INT && *atp->values) { - int k = ntohl((*(int *)data)); + u_int32_t k = ntohl((*(int *)data)); for(i = 0; atp->values[i] != NULL; i++) /* SHOOT ME */ ; |