summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/ssl
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2014-09-28 10:50:33 +0000
committermiod <miod@openbsd.org>2014-09-28 10:50:33 +0000
commite03a8533491a074e7394343fbae26392442ae902 (patch)
treebaf63d61d3e3e42b37d966319e06527a59762cb5 /lib/libssl/src/ssl
parentdocument -fstack-shuffle (diff)
downloadwireguard-openbsd-e03a8533491a074e7394343fbae26392442ae902.tar.xz
wireguard-openbsd-e03a8533491a074e7394343fbae26392442ae902.zip
Someone (TM) thought it was smart to save memory by using malloc(1) and
manual field fiddling to create an ASN1_INTEGER object, instead of using M_ASN1_INTEGER_new() which will allocate sizeof(long) bytes. That person had probably never looked into malloc(3) and never heard of allocation size rounding. Thus, replace the obfuscated code with M_ASN1_INTEGER_new() followed by ASN1_INTEGER_set(), to achieve a similar result, without the need for /* version == 0 */ comments. ok bcook@
Diffstat (limited to 'lib/libssl/src/ssl')
0 files changed, 0 insertions, 0 deletions