Browse Source

Remove duplicate condition (#482)

bel2125 8 năm trước cách đây
mục cha
commit
e1f4d89b08
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/civetweb.c

+ 2 - 1
src/civetweb.c

@@ -12917,9 +12917,10 @@ refresh_trust(struct mg_connection *conn)
 	}
 	}
 	chain = conn->ctx->config[SSL_CERTIFICATE_CHAIN];
 	chain = conn->ctx->config[SSL_CERTIFICATE_CHAIN];
 	if (chain == NULL) {
 	if (chain == NULL) {
+        /* pem is not NULL here */
 		chain = pem;
 		chain = pem;
 	}
 	}
-	if ((chain != NULL) && (*chain == 0)) {
+    if (*chain == 0) {
 		chain = NULL;
 		chain = NULL;
 	}
 	}