Content-Length: 258350 | pFad | http://github.com/postgrespro/postgres/commit/37d264478ab47e8fa03751c39ba2c5dd447b89c8

9A Fix variable assignment thinko in hba.c · postgrespro/postgres@37d2644 · GitHub
Skip to content

Commit 37d2644

Browse files
committed
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 1b73d0b commit 37d2644

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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/37d264478ab47e8fa03751c39ba2c5dd447b89c8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy