Skip to content

Commit 3c31e21

Browse files
author
tb
committed
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
1 parent cf26762 commit 3c31e21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/libssl/d1_pkt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: d1_pkt.c,v 1.125 2022/11/11 17:15:26 jsing Exp $ */
1+
/* $OpenBSD: d1_pkt.c,v 1.126 2022/11/23 07:31:12 tb Exp $ */
22
/*
33
* DTLS implementation written by Nagendra Modadugu
44
* (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -553,7 +553,7 @@ dtls1_read_handshake_unexpected(SSL *s)
553553
}
554554

555555
/* Parse handshake message header. */
556-
CBS_dup(&cbs, tls_content_cbs(s->s3->rcontent));
556+
CBS_dup(tls_content_cbs(s->s3->rcontent), &cbs);
557557
if (!dtls1_get_message_header(&cbs, &hs_msg_hdr))
558558
return -1; /* XXX - probably should drop/continue. */
559559

0 commit comments

Comments
 (0)