]> granicus.if.org Git - apache/commitdiff
Nit: the lack of brackets was driving me crazy
authorCliff Woolley <jwoolley@apache.org>
Thu, 23 Aug 2001 00:23:54 +0000 (00:23 +0000)
committerCliff Woolley <jwoolley@apache.org>
Thu, 23 Aug 2001 00:23:54 +0000 (00:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90531 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_io.c

index cb45ee9cc746776962a4fad2dcd13e9ccd0e50f6..f5a22ee37fa9ee48fbd3bd02a7686fb6056d37c6 100644 (file)
@@ -97,15 +97,17 @@ static int ssl_io_hook_read(SSL *ssl, unsigned char *buf, int len)
         /*
          * read(2) returns only the generic error number -1
          */
-        if (rc < 0)
+        if (rc < 0) {
             /*
              * XXX - Just trying to reflect the behaviour in 
              * openssl_state_machine.c [mod_tls]. TBD
              */
             rc = -1;
+        }
     }
-    else
+    else {
         rc = -1;
+    }
     return rc;
 }
 
@@ -132,15 +134,17 @@ static int ssl_io_hook_write(SSL *ssl, unsigned char *buf, int len)
         /*
          * write(2) returns only the generic error number -1
          */
-        if (rc < 0)
+        if (rc < 0) {
             /*
              * XXX - Just trying to reflect the behaviour in 
              * openssl_state_machine.c [mod_tls]. TBD
              */
             rc = 0;
+        }
     }
-    else
+    else {
         rc = -1;
+    }
     return rc;
 }