diff options
author | deraadt <> | 2019-03-24 06:23:50 +0000 |
---|---|---|
committer | deraadt <> | 2019-03-24 06:23:50 +0000 |
commit | 7453849d3118bad7f9d534a63aa2fd9f4de1b5a8 (patch) | |
tree | 7a8fef359670c46bd7986166c8431e0b714dc9a9 /src/lib | |
parent | ca4bb8fd7a5a26fd8735668aa2353f221a0d0fbc (diff) | |
download | openbsd-7453849d3118bad7f9d534a63aa2fd9f4de1b5a8.tar.gz openbsd-7453849d3118bad7f9d534a63aa2fd9f4de1b5a8.tar.bz2 openbsd-7453849d3118bad7f9d534a63aa2fd9f4de1b5a8.zip |
do not call assert(), which has a tendency to leave traces of stuff in
corefiles. Instead call OPENSSL_assert(), which has recently been trained
to do this in a safer (if more awkward to debug) way.
discussed with jsing and beck a while back
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/ssl_sess.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_sess.c b/src/lib/libssl/ssl_sess.c index 52a1a0cc47..746d8aeec3 100644 --- a/src/lib/libssl/ssl_sess.c +++ b/src/lib/libssl/ssl_sess.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_sess.c,v 1.81 2018/08/24 18:10:25 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_sess.c,v 1.82 2019/03/24 06:23:50 deraadt Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -465,7 +465,8 @@ ssl_get_prev_session(SSL *s, const unsigned char *session_id, | |||
465 | try_session_cache = 0; | 465 | try_session_cache = 0; |
466 | break; | 466 | break; |
467 | default: | 467 | default: |
468 | abort(); | 468 | OPENSSL_assert("aborting; unreasonable ticket"); |
469 | _exit(1); | ||
469 | } | 470 | } |
470 | 471 | ||
471 | if (try_session_cache && ret == NULL && | 472 | if (try_session_cache && ret == NULL && |