From: Alan T. DeKok Date: Thu, 26 May 2011 08:54:25 +0000 (+0200) Subject: Terminate string when using %{Attribute-Name[*]} X-Git-Tag: release_3_0_0_beta0~801 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=835fe07a60db9ecd83b5ef521330eb9c110210f3;p=thirdparty%2Ffreeradius-server.git Terminate string when using %{Attribute-Name[*]} --- diff --git a/src/main/xlat.c b/src/main/xlat.c index e76b342f3f1..3e3edad477f 100644 --- a/src/main/xlat.c +++ b/src/main/xlat.c @@ -238,9 +238,10 @@ static size_t xlat_packet(void *instance, REQUEST *request, *(out++) = '\n'; - if (outlen == 0) break; + if (outlen <= 1) break; } + *out = '\0'; return total; }