From 3cbdf4a14853c4406e1eaa92293934049e66c854 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Thu, 3 Nov 2022 15:52:34 -0400 Subject: [PATCH] ws: return CURLE_NOT_BUILT_IN when websockets not built in - Change curl_ws_recv & curl_ws_send to return CURLE_NOT_BUILT_IN when websockets support is not built in. Prior to this change they returned CURLE_OK. Closes #9851 --- lib/ws.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ws.c b/lib/ws.c index a673446625..7ae6a0bc00 100644 --- a/lib/ws.c +++ b/lib/ws.c @@ -732,7 +732,7 @@ CURL_EXTERN CURLcode curl_ws_recv(CURL *curl, void *buffer, size_t buflen, (void)buflen; (void)nread; (void)metap; - return CURLE_OK; + return CURLE_NOT_BUILT_IN; } CURL_EXTERN CURLcode curl_ws_send(CURL *curl, const void *buffer, @@ -746,7 +746,7 @@ CURL_EXTERN CURLcode curl_ws_send(CURL *curl, const void *buffer, (void)sent; (void)framesize; (void)sendflags; - return CURLE_OK; + return CURLE_NOT_BUILT_IN; } CURL_EXTERN struct curl_ws_frame *curl_ws_meta(struct Curl_easy *data) -- 2.47.3