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

Commite84e476

Browse files
committed
Clear OpenSSL error queue after failed X509_STORE_load_locations() call.
Leaving the error in the error queue used to be harmless, because theX509_STORE_load_locations() call used to be the last step ininitialize_SSL(), and we would clear the queue before the nextSSL_connect() call. But previous commit moved things around. The symptomwas that if a CRL file was not found, and one of the subsequentinitialization steps, like loading the client certificate or private key,failed, we would incorrectly print the "no such file" error message fromthe earlier X509_STORE_load_locations() call as the reason.Backpatch to all supported versions, like the previous patch.
1 parente76d06d commite84e476

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/interfaces/libpq/fe-secure.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,7 @@ initialize_SSL(PGconn *conn)
11191119
#endif
11201120
}
11211121
/* if not found, silently ignore; we do not require CRL */
1122+
ERR_clear_error();
11221123
}
11231124
have_rootcert= true;
11241125
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp