]> git.ipfire.org Git - thirdparty/strongswan.git/commit
unit-tests: Zero-initialize chunk to avoid free on non-successful fetch
authorMartin Willi <martin@revosec.ch>
Mon, 2 Jun 2014 10:52:32 +0000 (12:52 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 4 Jun 2014 14:34:16 +0000 (16:34 +0200)
commit74eedc8061fd2994be1ff3460c54f8cb65273b43
tree2aafb87f22422720300a0c2d37da19b2ec298d71
parent8a072fc50ac76af682e9fd0e21a31cf8411b9838
unit-tests: Zero-initialize chunk to avoid free on non-successful fetch

If the fetch fails, the fetcher is not required to return an empty chunk. Avoid
the resulting invalid free() by initializing data.ptr to NULL.
src/libstrongswan/tests/suites/test_fetch_http.c