From d54bf743ec5803b144b5355fbd19c0ae0a7fa2d6 Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 23 Nov 2022 07:31:12 +0000 Subject: Reverse arguments in CBS_dup() We want to copy the tls_content_cbs() into the cbs, not the other way around CID 377013 ok jsing --- src/lib/libssl/d1_pkt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/libssl/d1_pkt.c b/src/lib/libssl/d1_pkt.c index 35d5d8ec6d..4b33685aba 100644 --- a/src/lib/libssl/d1_pkt.c +++ b/src/lib/libssl/d1_pkt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: d1_pkt.c,v 1.125 2022/11/11 17:15:26 jsing Exp $ */ +/* $OpenBSD: d1_pkt.c,v 1.126 2022/11/23 07:31:12 tb Exp $ */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. @@ -553,7 +553,7 @@ dtls1_read_handshake_unexpected(SSL *s) } /* Parse handshake message header. */ - CBS_dup(&cbs, tls_content_cbs(s->s3->rcontent)); + CBS_dup(tls_content_cbs(s->s3->rcontent), &cbs); if (!dtls1_get_message_header(&cbs, &hs_msg_hdr)) return -1; /* XXX - probably should drop/continue. */ -- cgit v1.2.3-55-g6feb