summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-04-01 06:43:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-04-01 06:43:54 +0000
commit3e5f045726ccbaf869cb5558be33c465d60db623 (patch)
treeef6ffb6e1403f87893450d52e81bba8b17c9b614 /lib
parentf6ee4297955c53393a25acc3993d799773e477ca (diff)
mark ERR_R_INTERNAL_ERROR instead of assert or _exit, sigh
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/ssl_sess.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/ssl_sess.c b/lib/libssl/ssl_sess.c
index 746d8aeec35..1abefd52114 100644
--- a/lib/libssl/ssl_sess.c
+++ b/lib/libssl/ssl_sess.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_sess.c,v 1.82 2019/03/24 06:23:50 deraadt Exp $ */
+/* $OpenBSD: ssl_sess.c,v 1.83 2019/04/01 06:43:53 deraadt Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -465,8 +465,8 @@ ssl_get_prev_session(SSL *s, const unsigned char *session_id,
try_session_cache = 0;
break;
default:
- OPENSSL_assert("aborting; unreasonable ticket");
- _exit(1);
+ SSLerror(s, ERR_R_INTERNAL_ERROR);
+ goto err;
}
if (try_session_cache && ret == NULL &&