diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c b/src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c index d6d09cffd7..cc5b876ab3 100644 --- a/src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c +++ b/src/regress/lib/libssl/unit/ssl_get_shared_ciphers.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_get_shared_ciphers.c,v 1.5 2021/01/11 18:31:03 tb Exp $ */ | 1 | /* $OpenBSD: ssl_get_shared_ciphers.c,v 1.6 2021/01/11 18:33:43 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2021 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2021 Theo Buehler <tb@openbsd.org> |
| 4 | * | 4 | * |
| @@ -347,7 +347,12 @@ handshake(SSL *client_ssl, SSL *server_ssl, const char *description) | |||
| 347 | return 0; | 347 | return 0; |
| 348 | } | 348 | } |
| 349 | 349 | ||
| 350 | return client_ret == 1 && server_ret == 1; | 350 | if (client_ret != 1 || server_ret != 1) { |
| 351 | fprintf(stderr, "%s: failed\n", __func__); | ||
| 352 | return 0; | ||
| 353 | } | ||
| 354 | |||
| 355 | return 1; | ||
| 351 | } | 356 | } |
| 352 | 357 | ||
| 353 | static int | 358 | static int |
| @@ -365,7 +370,12 @@ shutdown(SSL *client_ssl, SSL *server_ssl, const char *description) | |||
| 365 | return 0; | 370 | return 0; |
| 366 | } | 371 | } |
| 367 | 372 | ||
| 368 | return client_ret == 1 && server_ret == 1; | 373 | if (client_ret != 1 || server_ret != 1) { |
| 374 | fprintf(stderr, "%s: failed\n", __func__); | ||
| 375 | return 0; | ||
| 376 | } | ||
| 377 | |||
| 378 | return 1; | ||
| 369 | } | 379 | } |
| 370 | 380 | ||
| 371 | /* from ssl_ciph.c */ | 381 | /* from ssl_ciph.c */ |
