commit | 8ab1043c6bdc3c044edb31a674031d277b877bc7 | [log] [tgz] |
---|---|---|
author | David Carlier <devnexen@gmail.com> | Wed Mar 23 17:50:57 2016 +0000 |
committer | Willy Tarreau <w@1wt.eu> | Thu Mar 24 10:18:44 2016 +0100 |
tree | c5053e7c080fdeab14ead3503e05e66a0a2cfc40 | |
parent | 0b547059ec43c48a0f7c479239f747b32f77fc13 [diff] |
CLEANUP: chunk: adding NULL check to chunk_dup allocation. Avoiding harmful memcpy call if the allocation failed. Resetting the size which avoids further harmful freeing invalid pointer. Closer to the comment behavior description.