aboutsummaryrefslogtreecommitdiff
path: root/src/common/tortls.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-09-14 02:58:50 +0000
committerRoger Dingledine <arma@torproject.org>2003-09-14 02:58:50 +0000
commite585dad88776719bd72faaa7225dbdec230c929a (patch)
treea95dffcb1840c6847c76ff27496f175c1bc50ec2 /src/common/tortls.c
parent429fb381f89fe6991837898cb0cb2cf456137edc (diff)
downloadtor-e585dad88776719bd72faaa7225dbdec230c929a.tar.gz
tor-e585dad88776719bd72faaa7225dbdec230c929a.zip
fix the cpuworker circ-had-vanished bug (maybe)
still several (many) tls-related bugs outstanding. svn:r454
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r--src/common/tortls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 1f943ebb86..5d0ead1c4c 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -421,7 +421,7 @@ tor_tls_verify(tor_tls *tls)
time_t now;
crypto_pk_env_t *r = NULL;
if (!(cert = SSL_get_peer_certificate(tls->ssl)))
- return 0;
+ return NULL;
now = time(NULL);
if (X509_cmp_time(X509_get_notBefore(cert), &now) > 0)
@@ -453,3 +453,4 @@ tor_tls_verify(tor_tls *tls)
RSA_free(rsa);
return r;
}
+