]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
RIO NOTIFIER: Fix symbol usage
authorHugo Landau <hlandau@openssl.org>
Mon, 29 Apr 2024 09:13:56 +0000 (10:13 +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 0742cd8b2493ab50a82eca397e1d707d14d09341..300b2135d32336352785a8fb80c7959c3affa7ea 100644 (file)
@@ -1,4 +1,5 @@
 #include "internal/rio_notifier.h"
+#include "internal/sockets.h"
 #include <openssl/bio.h>
 
 /*
@@ -220,7 +221,7 @@ int ossl_rio_notifier_signal(RIO_NOTIFIER *nfy)
          * Note: If wr returns 0 the buffer is already full so we don't need to
          * do anything.
          */
-        wr = send(nfy->wfd, &ch, sizeof(ch), 0);
+        wr = writesocket(nfy->wfd, &ch, sizeof(ch));
     while (wr < 0 && get_last_socket_error_is_eintr());
 
     return 1;
@@ -236,7 +237,7 @@ int ossl_rio_notifier_unsignal(RIO_NOTIFIER *nfy)
      * it's empty.
      */
     do
-        rd = recv(nfy->rfd, buf, sizeof(buf), 0);
+        rd = readsocket(nfy->rfd, buf, sizeof(buf));
     while (rd == sizeof(buf)
            || (rd < 0 && get_last_socket_error_is_eintr()));