From: Alan T. DeKok Date: Thu, 24 Sep 2020 18:18:59 +0000 (-0400) Subject: mash all of the buffer, not the "next" character X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d40c74037fcc516def7604952d4be3e5cc37ac19;p=thirdparty%2Ffreeradius-server.git mash all of the buffer, not the "next" character --- diff --git a/src/modules/rlm_csv/rlm_csv.c b/src/modules/rlm_csv/rlm_csv.c index e32364fb51b..2902c2c53dd 100644 --- a/src/modules/rlm_csv/rlm_csv.c +++ b/src/modules/rlm_csv/rlm_csv.c @@ -109,7 +109,7 @@ static bool buf2entry(rlm_csv_t *inst, char *buf, char **out) *out = strchr(buf + 1, *inst->delimiter); if (!*out) { /* mash CR / LF */ - for (p = buf + 1; *p != '\0'; p++) { + for (p = buf; *p != '\0'; p++) { if (*p < ' ') { *p = '\0'; break;