BUG/MINOR: ist: only store NUL byte on succeeded alloc
The trailing NUL added at the end of istdup() by recent commit de0216758
("BUG/MINOR: ist: allocate nul byte on istdup") was placed outside of
the pointer validity test, rightfully showing null deref warnings. This
fix should be backported along with the fix above, to the same versions.
(cherry picked from commit a4d44250ebda83aac986d94e49004c470a19681e)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 9ba0ff5b40cd6155b602098fe64f0bed7aaf8a6d)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed