Proc_Close(): Only close socket if it is still valid
authorAlexander Barton <alex@barton.de>
Fri, 6 Jan 2012 01:26:04 +0000 (02:26 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 6 Jan 2012 01:26:04 +0000 (02:26 +0100)
commitcc06e1ff89ae4b7ffc8d95a8ab1d9b6787a5d142
tree999d23c154127aecc8491eb2cce908ad045b8701
parent9fbf592924d4ed1e37b42f295ec9c9ab0fc3cd08
Proc_Close(): Only close socket if it is still valid

It could be invalid when calling Proc_Close() a 2nd time, for exmaple,
which could happen when we hit a timeout doing IDENT requests :-(
src/ngircd/proc.c