diff options
| author | deraadt <> | 2019-03-24 06:23:50 +0000 |
|---|---|---|
| committer | deraadt <> | 2019-03-24 06:23:50 +0000 |
| commit | d55e796350a82fa9fadd3c87685f7ed42561bdcb (patch) | |
| tree | 7a8fef359670c46bd7986166c8431e0b714dc9a9 /src/lib/libssl/ssl_sess.c | |
| parent | c7b9ffc836ad7a05586d7c83c368d784af9cacda (diff) | |
| download | openbsd-d55e796350a82fa9fadd3c87685f7ed42561bdcb.tar.gz openbsd-d55e796350a82fa9fadd3c87685f7ed42561bdcb.tar.bz2 openbsd-d55e796350a82fa9fadd3c87685f7ed42561bdcb.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 '')
| -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 && |
