소스 검색

Fix the return value

Nick Mathewson 9 년 전
부모
커밋
9459ae260e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/common/tortls.c

+ 1 - 1
src/common/tortls.c

@@ -2678,7 +2678,7 @@ dn_indicates_v3_cert(X509_NAME *name)
     return 0;
   if (len < 4) {
     OPENSSL_free(s);
-    return 0;
+    return 1;
   }
   r = fast_memneq(s + len - 4, ".net", 4);
   OPENSSL_free(s);