Browse Source

Remove duplicate condition (#482)

bel2125 8 years ago
parent
commit
e1f4d89b08
1 changed files with 2 additions and 1 deletions
  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;
 	}