diff options
| author | beck <> | 2021-09-02 11:10:43 +0000 |
|---|---|---|
| committer | beck <> | 2021-09-02 11:10:43 +0000 |
| commit | ef76491f728b8f9b1a00f82ef2a55147112b3842 (patch) | |
| tree | 5548bbff14bafb82cb59d3f3a3af78bcda966399 | |
| parent | 6ea6811dcb65ce2b479375e968f90b9acd57461a (diff) | |
| download | openbsd-ef76491f728b8f9b1a00f82ef2a55147112b3842.tar.gz openbsd-ef76491f728b8f9b1a00f82ef2a55147112b3842.tar.bz2 openbsd-ef76491f728b8f9b1a00f82ef2a55147112b3842.zip | |
Correct the is_server flag in the call to the debug callback to be correct.
ok tb@
| -rw-r--r-- | src/lib/libssl/ssl_tlsext.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_tlsext.c b/src/lib/libssl/ssl_tlsext.c index 2eac4947e9..4d426f1487 100644 --- a/src/lib/libssl/ssl_tlsext.c +++ b/src/lib/libssl/ssl_tlsext.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_tlsext.c,v 1.97 2021/06/29 19:31:16 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_tlsext.c,v 1.98 2021/09/02 11:10:43 beck Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> |
| 4 | * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> | 4 | * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> |
| @@ -2083,7 +2083,7 @@ tlsext_parse(SSL *s, int is_server, uint16_t msg_type, CBS *cbs, int *alert) | |||
| 2083 | goto err; | 2083 | goto err; |
| 2084 | 2084 | ||
| 2085 | if (s->internal->tlsext_debug_cb != NULL) | 2085 | if (s->internal->tlsext_debug_cb != NULL) |
| 2086 | s->internal->tlsext_debug_cb(s, is_server, type, | 2086 | s->internal->tlsext_debug_cb(s, !is_server, type, |
| 2087 | (unsigned char *)CBS_data(&extension_data), | 2087 | (unsigned char *)CBS_data(&extension_data), |
| 2088 | CBS_len(&extension_data), | 2088 | CBS_len(&extension_data), |
| 2089 | s->internal->tlsext_debug_arg); | 2089 | s->internal->tlsext_debug_arg); |
