From 871bc59bc190d24ddd7b29aeb5fb2493b48e9cf5 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 8 Sep 2016 09:58:29 +0100 Subject: Various bug fixes and tweaks to WPACKET implementation Also added the WPACKET_cleanup() function to cleanup a WPACKET if we hit an error. Reviewed-by: Rich Salz --- ssl/packet_locl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ssl/packet_locl.h') diff --git a/ssl/packet_locl.h b/ssl/packet_locl.h index 65ab15a8d9..acbd966121 100644 --- a/ssl/packet_locl.h +++ b/ssl/packet_locl.h @@ -584,8 +584,7 @@ struct wpacket_st { size_t written; /* - * Maximum number of bytes we will allow to be written to this WPACKET. Zero - * if no maximum + * Maximum number of bytes we will allow to be written to this WPACKET. */ size_t maxsize; @@ -621,6 +620,7 @@ int WPACKET_sub_memcpy(WPACKET *pkt, const void *src, size_t len, size_t lenbytes); int WPACKET_get_total_written(WPACKET *pkt, size_t *written); int WPACKET_get_length(WPACKET *pkt, size_t *len); +void WPACKET_cleanup(WPACKET *pkt); # ifdef __cplusplus } -- cgit v1.2.3