]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Minor fix for Windows
authorHugo Landau <hlandau@openssl.org>
Mon, 13 May 2024 18:22:10 +0000 (19:22 +0100)
committerNeil Horman <nhorman@openssl.org>
Mon, 17 Feb 2025 16:27:32 +0000 (11:27 -0500)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)

ssl/rio/rio_notifier.c

index b31cd433d6c871178b85d60ac0d0bc74bebd2db6..ce6a0b220b109796d8984025c46722fb35353e55 100644 (file)
@@ -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;