]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
mash all of the buffer, not the "next" character
authorAlan T. DeKok <aland@freeradius.org>
Thu, 24 Sep 2020 18:18:59 +0000 (14:18 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 24 Sep 2020 18:29:55 +0000 (14:29 -0400)
src/modules/rlm_csv/rlm_csv.c

index e32364fb51b53e83ba8376b136793e472792a55e..2902c2c53dd19b43473bcf32e410cd5d55cc371d 100644 (file)
@@ -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;