Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit37d2644

Browse files
committed
Fix variable assignment thinko in hba.c
The intention behind1b73d0b was to limit the use of TokenizedAuthLine,but I have fat-fingered one location in parse_hba_line() when creatingthe HbaLine, where this should use the local variable and not the valuecoming from TokenizedAuthLine. This logic is the exactly the same, butlet's be clean about all that on consistency grounds.Reported-by: Julien RouhaudDiscussion:https://postgr.es/m/20221026032730.k3sib5krgm7l6njk@jrouhaud
1 parent1b73d0b commit37d2644

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)

[8]ページ先頭

©2009-2025 Movatter.jp