]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: ssl: use realloc() instead of free()+malloc()
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Feb 2021 20:05:08 +0000 (21:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Feb 2021 20:27:33 +0000 (21:27 +0100)
commit3bda3f422ee8c3da6b807c6e37db0b3d934ef740
tree6899a1f471a32101eec42c0ec82419694faecedf
parente709e821734c306ae482e537e3ab4960046e386c
CLEANUP: ssl: use realloc() instead of free()+malloc()

There was a free(ptr) followed by ptr=malloc(ptr, len), which is the
equivalent of ptr = realloc(ptr, len) but slower and less clean. Let's
replace this.
src/ssl_sock.c