From: Hugo Landau Date: Mon, 29 Apr 2024 09:13:56 +0000 (+0100) Subject: RIO NOTIFIER: Fix symbol usage X-Git-Tag: openssl-3.5.0-alpha1~369 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9c1bd44f1d68b5673b94d0788aed0dfa34c7959d;p=thirdparty%2Fopenssl.git RIO NOTIFIER: Fix symbol usage 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 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()));