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

Commit77d8edc

Browse files
committed
Properly close token in sspi authentication
We can never leak more than one token, but we shouldn't do that. Wedon't bother closing it in the error paths since the process willexit shortly anyway.Christian Ullrich
1 parentb87403f commit77d8edc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/backend/libpq/auth.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,6 +1467,8 @@ pg_SSPI_recvauth(Port *port)
14671467
(errmsg_internal("could not get user token: error code %lu",
14681468
GetLastError())));
14691469

1470+
CloseHandle(token);
1471+
14701472
if (!LookupAccountSid(NULL,tokenuser->User.Sid,accountname,&accountnamesize,
14711473
domainname,&domainnamesize,&accountnameuse))
14721474
ereport(ERROR,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp