summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_lib.c
diff options
context:
space:
mode:
authorjsing <>2020-09-26 08:58:00 +0000
committerjsing <>2020-09-26 08:58:00 +0000
commitf4c0739084aedd02b6fe70b1b3fd77fb833e59c1 (patch)
treef04921c071b54b0b4937527030b55242f2f13d65 /src/lib/libssl/tls13_lib.c
parent4284d3c95b72551c4d0f88087d7ef3e863d48e86 (diff)
downloadopenbsd-f4c0739084aedd02b6fe70b1b3fd77fb833e59c1.tar.gz
openbsd-f4c0739084aedd02b6fe70b1b3fd77fb833e59c1.tar.bz2
openbsd-f4c0739084aedd02b6fe70b1b3fd77fb833e59c1.zip
Have dtls1_hm_fragment_new() call dtls1_hm_fragment_free() on failure.
Rather than using local variables and having to remember which things need to be freed upon a failure at a certain point, simply allocate into the hm_fragment struct and call dtls1_hm_fragment_free() on failure. Also use calloc() to ensure memory is appropriately zeroed/initialised. ok tb@
Diffstat (limited to 'src/lib/libssl/tls13_lib.c')
0 files changed, 0 insertions, 0 deletions