aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/fetch.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-06-02 12:52:32 +0200
committerMartin Willi <martin@revosec.ch>2014-06-04 16:34:16 +0200
commit74eedc8061fd2994be1ff3460c54f8cb65273b43 (patch)
tree2aafb87f22422720300a0c2d37da19b2ec298d71 /scripts/fetch.c
parent8a072fc50ac76af682e9fd0e21a31cf8411b9838 (diff)
downloadstrongswan-74eedc8061fd2994be1ff3460c54f8cb65273b43.tar.bz2
strongswan-74eedc8061fd2994be1ff3460c54f8cb65273b43.tar.xz
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.
Diffstat (limited to 'scripts/fetch.c')
0 files changed, 0 insertions, 0 deletions