aboutsummaryrefslogtreecommitdiffstats
path: root/packet-radius.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-12-17 02:24:53 +0000
committerGuy Harris <guy@alum.mit.edu>2003-12-17 02:24:53 +0000
commit653af411ddc4e829cac3e31d35f252bf0798930b (patch)
tree6283a21d747bb5c42d880acec755aee1999176cd /packet-radius.c
parent5725e34ef40d006e7b1c7a20f6d6e1d95edeafc3 (diff)
According to RFC 2868, a tag value of 0 is not valid for a string - we
just treat a 0 tag byte as the first byte of the string. svn path=/trunk/; revision=9308
Diffstat (limited to 'packet-radius.c')
-rw-r--r--packet-radius.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-radius.c b/packet-radius.c
index cfc1d83741..f3c9af686f 100644
--- a/packet-radius.c
+++ b/packet-radius.c
@@ -6,7 +6,7 @@
*
* RFC 2865, RFC 2866, RFC 2867, RFC 2868, RFC 2869
*
- * $Id: packet-radius.c,v 1.85 2003/12/17 02:17:40 guy Exp $
+ * $Id: packet-radius.c,v 1.86 2003/12/17 02:24:53 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -2439,7 +2439,7 @@ static void rd_value_to_str(gchar *dest, rd_vsa_buffer (*vsabuffer)[VSABUFFER],
case( RADIUS_STRING_TAGGED ):
/* Tagged ? */
tag = tvb_get_guint8(tvb,offset+2);
- if (tag <= 0x1f) {
+ if (tag > 0 && tag <= 0x1f) {
sprintf(dest, "Tag:%u, Value:",
tag);
cont=&cont[strlen(cont)];