]> git.ipfire.org Git - thirdparty/krb5.git/commit
Avoid closing fd -1 in libkrad
authorLukas Slebodnik <lslebodn@redhat.com>
Sat, 21 Jun 2014 14:43:12 +0000 (16:43 +0200)
committerGreg Hudson <ghudson@mit.edu>
Sat, 12 Jul 2014 17:35:46 +0000 (13:35 -0400)
commit315d1ef769d3e3e7cc17884623c1baaad680c26b
treed48b188c36a927a229fa96502187952eff2456ad
parent347e70a0649d976f10236d682ee4999569b964d4
Avoid closing fd -1 in libkrad

If a krad_remote is released before its fd is set, we could close the
file descriptor -1, which is harmless but incorrect.  Check the fd in
remote_disconnect to avoid this.

[ghudson@mit.edu: clarified commit message, minor style change]
src/lib/krad/remote.c