From 29401b903f0f84855080242246a74752a409c69e Mon Sep 17 00:00:00 2001 From: Mladen Turk Date: Fri, 17 Sep 2004 12:39:19 +0000 Subject: [PATCH] Do not check if the input sock param is NULL. It's already checked before the function is called. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105183 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/ajp_link.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/modules/proxy/ajp_link.c b/modules/proxy/ajp_link.c index 5f8814131ed..3e7941b5a31 100644 --- a/modules/proxy/ajp_link.c +++ b/modules/proxy/ajp_link.c @@ -53,19 +53,10 @@ apr_status_t ajp_ilink_send(apr_socket_t *sock, ajp_msg_t *msg) static apr_status_t ilink_read(apr_socket_t *sock, char * buf, apr_size_t len) { - apr_size_t length; + apr_size_t length = len; + apr_size_t rdlen = 0; apr_status_t status; - apr_size_t rdlen; - if (sock == NULL) { - ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL, - "ajp_ilink_readN(): NULL socket provided"); - return AJP_EINVAL; - } - - rdlen = 0; - length = len; - while (rdlen < len) { status = apr_socket_recv(sock, buf + rdlen, &length); -- 2.47.2