Explicitly test against NULL; do not use !p or similar
[openssl.git] / test / handshake_helper.c
index c2528b9e1ee5a0499671af1b7422ca0ef3ef241a..e8249a7ce2316f13d9f5427713cad11d83116cc6 100644 (file)
@@ -877,7 +877,7 @@ static void do_app_data_step(PEER *peer)
      * to read gives us somewhat better guarantees that all data sent is in fact
      * received.
      */
-    if (!peer->bytes_to_write && !peer->bytes_to_read) {
+    if (peer->bytes_to_write == 0 && peer->bytes_to_read == 0) {
         peer->status = PEER_SUCCESS;
     }
 }