commit | 21699937b0db0da004401c9571ef10203ec134b2 | [log] [tgz] |
---|---|---|
author | Philip Withnall <philip.withnall@collabora.co.uk> | Sun Aug 24 23:10:13 2014 +0100 |
committer | Daniel Veillard <veillard@redhat.com> | Mon Oct 06 11:53:39 2014 +0800 |
tree | bed56d6118d1e0ff0e26a202b1db6a48f4871859 | |
parent | 98d71f9191ac83959d24ad7b01b211ef7bb3172e [diff] |
xmlIO: Handle error returns from dup() If dup() fails and returns -1, gzdopen() will transparently return NULL, but then close() will fail after being called on an invalid FD. Change the code to only call close() on valid FDs. Coverity issue: #72382