]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sdiff(1): Fix potential NULL deref in cleanup path
authorcem <cem@FreeBSD.org>
Tue, 10 May 2016 20:09:40 +0000 (20:09 +0000)
committercem <cem@FreeBSD.org>
Tue, 10 May 2016 20:09:40 +0000 (20:09 +0000)
commit0a07aade4208a50204fdd7f0cc4d391b49aff9a5
tree56aed442d9b34c3ee81fce995e670ddfd12acad4
parentb05aea41fa236129a4433cc26855c0a8304c3453
sdiff(1): Fix potential NULL deref in cleanup path

In the presence of the --diff-pid argument, it is possible for 'diffpipe' to be
NULL.  Only fclose() it if it was initialized.

Reported by: Coverity
CID: 1355183
Sponsored by: EMC / Isilon Storage Division
usr.bin/sdiff/sdiff.c