From 9c1bd44f1d68b5673b94d0788aed0dfa34c7959d Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Mon, 29 Apr 2024 10:13:56 +0100 Subject: [PATCH] RIO NOTIFIER: Fix symbol usage Reviewed-by: Matt Caswell Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/24971) --- ssl/rio/rio_notifier.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ssl/rio/rio_notifier.c b/ssl/rio/rio_notifier.c index 0742cd8b249..300b2135d32 100644 --- a/ssl/rio/rio_notifier.c +++ b/ssl/rio/rio_notifier.c @@ -1,4 +1,5 @@ #include "internal/rio_notifier.h" +#include "internal/sockets.h" #include /* @@ -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())); -- 2.47.2