diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-10-21 12:01:05 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-10-21 12:01:05 -0400 |
commit | 9459ae260e3ae428283c3b45d08aaef6ef9f6fa3 (patch) | |
tree | 70fc75409c180def5a2f80b503040b2c35ad35a0 | |
parent | 35bf07b8d67d018f7740ca195cf8c7c86b1b4ef9 (diff) | |
download | tor-9459ae260e3ae428283c3b45d08aaef6ef9f6fa3.tar.gz tor-9459ae260e3ae428283c3b45d08aaef6ef9f6fa3.zip |
Fix the return value
-rw-r--r-- | src/common/tortls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index 75ca47dbdb..840b677cb7 100644 --- a/src/common/tortls.c +++ b/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); |