Fix an error in packet_locl.h
authorMatt Caswell <matt@openssl.org>
Thu, 29 Sep 2016 17:00:01 +0000 (18:00 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 29 Sep 2016 17:00:01 +0000 (18:00 +0100)
A convenience macro was using the wrong underlying function.

Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/packet_locl.h

index 517c12d4620789444a973e7ce331573a5abc324c..55e41bba15fc37d036fb3d13de399ed5520043b7 100644 (file)
@@ -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);