From: Matt Caswell Date: Thu, 29 Sep 2016 17:00:01 +0000 (+0100) Subject: Fix an error in packet_locl.h X-Git-Tag: OpenSSL_1_1_1-pre1~3415 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=b36017fe5f2ee0a2cbc1028d842a183e0ac22da7 Fix an error in packet_locl.h A convenience macro was using the wrong underlying function. Reviewed-by: Rich Salz --- diff --git a/ssl/packet_locl.h b/ssl/packet_locl.h index 517c12d462..55e41bba15 100644 --- a/ssl/packet_locl.h +++ b/ssl/packet_locl.h @@ -758,7 +758,7 @@ int WPACKET_put_bytes__(WPACKET *pkt, unsigned int val, size_t bytes); #define WPACKET_put_bytes_u24(pkt, val) \ WPACKET_put_bytes__((pkt), (val), 3) #define WPACKET_put_bytes_u32(pkt, val) \ - WPACKET_sub_allocate_bytes__((pkt), (val), 4) + WPACKET_put_bytes__((pkt), (val), 4) /* Set a maximum size that we will not allow the WPACKET to grow beyond */ int WPACKET_set_max_size(WPACKET *pkt, size_t maxsize);