]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Do not check if the input sock param is NULL. It's already checked before
authorMladen Turk <mturk@apache.org>
Fri, 17 Sep 2004 12:39:19 +0000 (12:39 +0000)
committerMladen Turk <mturk@apache.org>
Fri, 17 Sep 2004 12:39:19 +0000 (12:39 +0000)
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

index 5f8814131ed23bd7e77d8b9d86617c0d82dd21da..3e7941b5a31548451b8bc492ac7d7c4eb23ea780 100644 (file)
@@ -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);