From: Alan T. DeKok Date: Thu, 30 Dec 2010 10:04:47 +0000 (+0100) Subject: Fixed printing of attributes X-Git-Tag: release_2_1_11~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93c2d305012d48dc16a485ab4a00161f59226904;p=thirdparty%2Ffreeradius-server.git Fixed printing of attributes --- diff --git a/src/modules/rlm_detail/rlm_detail.c b/src/modules/rlm_detail/rlm_detail.c index 3f1f2795bc7..651a799f962 100644 --- a/src/modules/rlm_detail/rlm_detail.c +++ b/src/modules/rlm_detail/rlm_detail.c @@ -221,11 +221,9 @@ static int checked_write_vp(REQUEST *request, off_t *bytes_accum, FILE *fp, int len; char buffer[1024]; - buffer[0] = '\t'; - len = vp_prints(buffer + 1, sizeof(buffer) - 2, vp); - buffer[len + 1] = '\n'; + vp_prints(buffer, sizeof(buffer), vp); - if (checked_write(request, bytes_accum, fp, "%s", buffer) < 0) { + if (checked_write(request, bytes_accum, fp, "\t%s\n", buffer) < 0) { return -1; } @@ -551,15 +549,6 @@ static int do_detail(void *instance, REQUEST *request, RADIUS_PACKET *packet, (unsigned long) request->timestamp) < 0) { return RLM_MODULE_FAIL; } - - /* - * We no longer permit Accounting-Request packets - * with an authenticator of zero. - */ - if (checked_write(request, &bytes_accum, outfp, - "\tRequest-Authenticator = Verified\n") < 0) { - return RLM_MODULE_FAIL; - } } if (checked_write(request, &bytes_accum, outfp, "\n") < 0) {