From 8a143741d093ef3154f498d4546fdf5f3135b926 Mon Sep 17 00:00:00 2001 From: Bob Beck Date: Thu, 2 Sep 2021 11:10:44 +0000 Subject: Correct the is_server flag in the call to the debug callback to be correct. ok tb@ --- lib/libssl/ssl_tlsext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libssl/ssl_tlsext.c b/lib/libssl/ssl_tlsext.c index 2eac4947e9a..4d426f1487a 100644 --- a/lib/libssl/ssl_tlsext.c +++ b/lib/libssl/ssl_tlsext.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_tlsext.c,v 1.97 2021/06/29 19:31:16 jsing Exp $ */ +/* $OpenBSD: ssl_tlsext.c,v 1.98 2021/09/02 11:10:43 beck Exp $ */ /* * Copyright (c) 2016, 2017, 2019 Joel Sing * Copyright (c) 2017 Doug Hogan @@ -2083,7 +2083,7 @@ tlsext_parse(SSL *s, int is_server, uint16_t msg_type, CBS *cbs, int *alert) goto err; if (s->internal->tlsext_debug_cb != NULL) - s->internal->tlsext_debug_cb(s, is_server, type, + s->internal->tlsext_debug_cb(s, !is_server, type, (unsigned char *)CBS_data(&extension_data), CBS_len(&extension_data), s->internal->tlsext_debug_arg); -- cgit v1.2.3