0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 08:12:37 +01:00

ircd::net: Bail from handle_verify() on socket fini.

This commit is contained in:
Jason Volk 2019-04-16 19:20:39 -07:00
parent 3b832db9a4
commit ff25a486a0

View file

@ -3288,13 +3288,12 @@ noexcept try
// `valid` indicates whether or not there's an anomaly with the // `valid` indicates whether or not there's an anomaly with the
// certificate; if so, it is usually enumerated by the `switch()` // certificate; if so, it is usually enumerated by the `switch()`
// statement below. If `valid` is false, this function can return // statement below. If `valid` is false, this function can return
// true to continue but it appears this function will be called a // true to still continue.
// second time with `valid=true`.
// // Socket ordered to shut down. We abort the verification here
// TODO: XXX: This behavior must be confirmed since we return true // to allow the open_opts out of scope with the user.
// TODO: XXX: early on recoverable errors and skip other checks if(fini || !sd.is_open())
// TODO: XXX: expecting a second call.. return false;
//
// The user can set this option to bypass verification. // The user can set this option to bypass verification.
if(!opts.verify_certificate) if(!opts.verify_certificate)