diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2021-09-02 11:10:44 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2021-09-02 11:10:44 +0000 |
commit | 8a143741d093ef3154f498d4546fdf5f3135b926 (patch) | |
tree | 96d02e070589d2a8f62bf5a15c0344e0d224c3df /lib/libssl | |
parent | 067d30f3c5b7a7ceb2a9418e1a44b588716449da (diff) |
Correct the is_server flag in the call to the debug callback to be correct.
ok tb@
Diffstat (limited to 'lib/libssl')
-rw-r--r-- | lib/libssl/ssl_tlsext.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <jsing@openbsd.org> * 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) 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); |