]> tinc-vpn.org Git - tinc/commitdiff
Fix stripping empty lines
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 27 Jun 2026 21:35:17 +0000 (23:35 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 27 Jun 2026 21:35:36 +0000 (23:35 +0200)
src/conf.c

index f8d3c8e4022dbce1e66841df0adaef39fb34d2f1..2485250bd2da2dc5b0b56e7447c9353504ca7057 100644 (file)
@@ -249,7 +249,7 @@ config_t *parse_config_line(char *line, const char *fname, int lineno) {
 
        eol = line + strlen(line);
 
-       while(strchr("\t ", *--eol)) {
+       while(eol > line && strchr("\t ", *--eol)) {
                *eol = '\0';
        }