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
This commit is contained in:
Guy Harris 2003-12-17 02:24:53 +00:00
parent 5725e34ef4
commit 653af411dd
1 changed files with 2 additions and 2 deletions

View File

@ -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)];