summaryrefslogtreecommitdiff
path: root/usr.bin/talk/talk_ctl.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-09-28 10:50:34 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-09-28 10:50:34 +0000
commit7e89cf56aa2f21452348020db60b332245b12a77 (patch)
tree79008fe9aa41824e739cd7241c8d8c5d6b0f0d2c /usr.bin/talk/talk_ctl.h
parentf151bb8e925a402223cf428746e2518457d0a621 (diff)
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 'usr.bin/talk/talk_ctl.h')
0 files changed, 0 insertions, 0 deletions