summaryrefslogtreecommitdiff
path: root/xmlreader.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2014-08-24 23:10:13 +0100
committerDaniel Veillard <veillard@redhat.com>2014-10-06 11:53:39 +0800
commit21699937b0db0da004401c9571ef10203ec134b2 (patch)
treebed56d6118d1e0ff0e26a202b1db6a48f4871859 /xmlreader.c
parent98d71f9191ac83959d24ad7b01b211ef7bb3172e (diff)
downloadlibxml2-21699937b0db0da004401c9571ef10203ec134b2.tar.gz
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
Diffstat (limited to 'xmlreader.c')
0 files changed, 0 insertions, 0 deletions