From: Hugo Landau Date: Mon, 13 May 2024 18:22:10 +0000 (+0100) Subject: Minor fix for Windows X-Git-Tag: openssl-3.5.0-alpha1~362 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54fd5e113b57df1e05516b72a434af9f5d56881a;p=thirdparty%2Fopenssl.git Minor fix for Windows Reviewed-by: Matt Caswell Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/24971) --- diff --git a/ssl/rio/rio_notifier.c b/ssl/rio/rio_notifier.c index b31cd433d6c..ce6a0b220b1 100644 --- a/ssl/rio/rio_notifier.c +++ b/ssl/rio/rio_notifier.c @@ -126,6 +126,10 @@ int ossl_rio_notifier_init(RIO_NOTIFIER *nfy) if (rfd < 0) goto err; + rc = getsockname(wfd, (struct sockaddr *)&sa, &sa_len); + if (rc < 0) + goto err; + /* Close the listener, which we don't need anymore. */ BIO_closesocket(lfd); lfd = -1;