summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/stack/stack.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2014-05-22 19:50:34 +0000
committermillert <millert@openbsd.org>2014-05-22 19:50:34 +0000
commit49116013a05abb38df03e6b61f379fd1cf24d4d2 (patch)
treed22eb372a5cf209f1ed708366ca2bdd6c1bd9406 /lib/libcrypto/stack/stack.c
parentRegen (diff)
downloadwireguard-openbsd-49116013a05abb38df03e6b61f379fd1cf24d4d2.tar.xz
wireguard-openbsd-49116013a05abb38df03e6b61f379fd1cf24d4d2.zip
If we have to realloc() "list" we need to zero out the new entries
to match the behavior of the initial calloc(). The "cols" array does not actually need to be zeroed so use reallocarray() instead of calloc(). Also fix a memory leak of tbl and initialize the value of maxcols/maxentry in the assignment instead of in the ecalloc() call. OK espie@
Diffstat (limited to 'lib/libcrypto/stack/stack.c')
0 files changed, 0 insertions, 0 deletions