Skip to content

Commit f9698b8

Browse files
michaelpqpull[bot]
authored andcommitted
Fix variable assignment thinko in hba.c
The intention behind 1b73d0b was to limit the use of TokenizedAuthLine, but I have fat-fingered one location in parse_hba_line() when creating the HbaLine, where this should use the local variable and not the value coming from TokenizedAuthLine. This logic is the exactly the same, but let's be clean about all that on consistency grounds. Reported-by: Julien Rouhaud Discussion: https://postgr.es/m/20221026032730.k3sib5krgm7l6njk@jrouhaud
1 parent d46044d commit f9698b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/libpq/hba.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ parse_hba_line(TokenizedAuthLine *tok_line, int elevel)
10791079
HbaLine *parsedline;
10801080

10811081
parsedline = palloc0(sizeof(HbaLine));
1082-
parsedline->sourcefile = pstrdup(tok_line->file_name);
1082+
parsedline->sourcefile = pstrdup(file_name);
10831083
parsedline->linenumber = line_num;
10841084
parsedline->rawline = pstrdup(tok_line->raw_line);
10851085

0 commit comments

Comments
 (0)