summaryrefslogtreecommitdiffstats
path: root/contrib/tcpdump/print-radius.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tcpdump/print-radius.c')
-rw-r--r--contrib/tcpdump/print-radius.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tcpdump/print-radius.c b/contrib/tcpdump/print-radius.c
index 9ec4066..72cf22e 100644
--- a/contrib/tcpdump/print-radius.c
+++ b/contrib/tcpdump/print-radius.c
@@ -473,7 +473,7 @@ print_attr_string(register u_char *data, u_int length, u_short attr_code )
break;
}
- for (i=0; i < length ; i++, data++)
+ for (i=0; *data && i < length ; i++, data++)
printf("%c",(*data < 32 || *data > 128) ? '.' : *data );
printf("}");
OpenPOWER on IntegriCloud