소스 검색

fixed small bug

Martin Gaida 9 년 전
부모
커밋
007588a08c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/civetweb.c

+ 2 - 2
src/civetweb.c

@@ -10568,10 +10568,10 @@ sslize(struct mg_connection *conn, SSL_CTX *s, int (*func)(SSL *))
 		char *pem;
 		if ((pem = conn->ctx->config[SSL_CERTIFICATE]) == NULL
 			&& conn->ctx->callbacks.init_ssl == NULL) {
-			return 1;
+			return 0;
 		}
 		if (ssl_use_pem_file(conn->ctx, pem) == 0) {
-			return 1;
+			return 0;
 		}
 	}
 	conn->ssl = SSL_new(s);