浏览代码

Remove duplicate condition (#482)

bel2125 8 年之前
父节点
当前提交
e1f4d89b08
共有 1 个文件被更改,包括 2 次插入1 次删除
  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];
 	if (chain == NULL) {
+        /* pem is not NULL here */
 		chain = pem;
 	}
-	if ((chain != NULL) && (*chain == 0)) {
+    if (*chain == 0) {
 		chain = NULL;
 	}