w00t 349b6b9193 Rewrite BufferedSocket::BindAddr to actually make sense, and not infinite loop under some conditions, etc. This also splits a lot of it into DoBindMagic(), for readability.
Seems to work okay on an invalid bind and nonexistant bind.. Fixes bug #754, reported by HiroP and Indoril.

Fix FD leak in some circumstances: if bind fails hard (requested address couldn't be bound), Close() the socket. Also fixes a deficiency of the previous commit in that if one address failed to bind, the FD would be invalidated.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11189 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-09 18:51:07 +00:00
..
2009-02-14 21:14:36 +00:00
2009-01-02 18:16:05 +00:00
2009-02-14 21:14:36 +00:00
2009-02-14 21:14:36 +00:00
2009-01-02 18:16:05 +00:00
2009-02-14 21:14:36 +00:00
2009-01-24 13:31:09 +00:00
2009-01-02 18:16:05 +00:00
2009-02-14 21:14:36 +00:00
2009-01-02 18:16:05 +00:00
2009-01-02 18:16:05 +00:00
2009-02-14 21:14:36 +00:00
2009-01-02 18:16:05 +00:00
2009-01-02 18:16:05 +00:00
2009-02-14 21:14:36 +00:00
2009-02-14 21:14:36 +00:00
2009-01-02 18:16:05 +00:00
2009-01-02 18:16:05 +00:00
2009-01-02 18:16:05 +00:00
2009-01-02 18:16:05 +00:00
2009-01-02 18:16:05 +00:00
2009-01-02 18:16:05 +00:00
2009-01-02 18:16:05 +00:00
2009-01-02 18:16:05 +00:00
2009-01-02 18:16:05 +00:00
2009-01-02 18:16:05 +00:00
2009-02-14 21:14:36 +00:00
2009-02-14 21:14:36 +00:00
2009-02-14 21:14:36 +00:00