Fix server reconnection
authorFederico G. Schwindt <fgsch@lodoss.net>
Mon, 16 Sep 2013 01:15:49 +0000 (02:15 +0100)
committerFederico G. Schwindt <fgsch@lodoss.net>
Mon, 16 Sep 2013 01:15:49 +0000 (02:15 +0100)
commit2cebfc54f5c450577e0a6d4f61a421ac2396e44e
tree2042bdf44dc4bdd83135a30dabe7748c00b820fc
parentde3e5fa77ca1b726fe242d869836d3c1c71c2cfb
Fix server reconnection

In some error cases conn_id will be left as SERVER_WAIT and
subsequently ignored in Check_Servers(). Ensure conn_id is set to
NONE before returning from New_Server() if we couldn't establish
the connection.

Prompted by a report from gabrielgi-at-gmail-dot-com.
src/ngircd/conn.c