From: Marko Kreen Date: Mon, 14 Mar 2016 10:09:07 +0000 (+0200) Subject: hba: Skip unparseable lines, keep parsing to the end. X-Git-Tag: pgbouncer_1_8~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=410617df1e218b4a934b9353e2198bd91f0feac6;p=pgbouncer hba: Skip unparseable lines, keep parsing to the end. Rejecting whole HBA file on failure seems bad usability. Show warning but keep parsing. Fixes #118 --- diff --git a/src/hba.c b/src/hba.c index dade1d8..70e187f 100644 --- a/src/hba.c +++ b/src/hba.c @@ -629,9 +629,8 @@ struct HBA *hba_load_rules(const char *fn) break; parse_from_string(&tp, ln); if (!parse_line(hba, &tp, linenr, fn)) { - free(hba); - hba = NULL; - break; + /* Ignore line, but parse to the end. */ + continue; } } out: