]> git.ipfire.org Git - thirdparty/strongswan.git/commit
leak_detective: Assign return value of realloc to buf
authorThomas Egerer <thomas.egerer@secunet.com>
Mon, 10 Feb 2014 16:14:24 +0000 (17:14 +0100)
committerMartin Willi <martin@revosec.ch>
Mon, 10 Feb 2014 16:23:54 +0000 (17:23 +0100)
commitb351acfed67b87f9f3a014a6c90807e08816cca2
treed508c668e15fd0fac895697159bbce78e5155bfa
parent770735722754f572ed452259d3b25cd40f27d70c
leak_detective: Assign return value of realloc to buf

If realloc return a pointer value different from the value to be
reallocated, a double free can occur in this context.

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
src/libstrongswan/utils/leak_detective.c