From: Mladen Turk Date: Fri, 17 Sep 2004 12:39:19 +0000 (+0000) Subject: Do not check if the input sock param is NULL. It's already checked before X-Git-Tag: 2.1.1~251 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29401b903f0f84855080242246a74752a409c69e;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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);