summaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-08-25 11:39:38 -0400
committerNick Mathewson <nickm@torproject.org>2017-08-25 11:39:38 -0400
commitb91dce9454c3db669a07968b25a4fa03d8526917 (patch)
treed1e4aa46835978b63628a1dbd3e5782140cb72fa /src/or/connection_or.c
parent0de3147bf1b7a76b99ced69bde6e2169bb9a0caa (diff)
parent6069c829f90576c04a0802d2a108378a2bbabb7a (diff)
downloadtor-b91dce9454c3db669a07968b25a4fa03d8526917.tar.gz
tor-b91dce9454c3db669a07968b25a4fa03d8526917.zip
Merge branch 'maint-0.3.1'
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r--src/or/connection_or.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index 7c929e5272..c776afe942 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -1548,7 +1548,9 @@ connection_or_check_valid_tls_handshake(or_connection_t *conn,
}
if (identity_rcvd) {
- crypto_pk_get_digest(identity_rcvd, digest_rcvd_out);
+ if (crypto_pk_get_digest(identity_rcvd, digest_rcvd_out) < 0) {
+ return -1;
+ }
} else {
memset(digest_rcvd_out, 0, DIGEST_LEN);
}