From 54fd5e113b57df1e05516b72a434af9f5d56881a Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Mon, 13 May 2024 19:22:10 +0100 Subject: [PATCH] Minor fix for Windows Reviewed-by: Matt Caswell Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/24971) --- ssl/rio/rio_notifier.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.47.2