Avoid crashes when handling ET_EOF for IAuth stderr before stdout.
authorMichael Poole <mdpoole@troilus.org>
Tue, 6 Aug 2013 03:01:51 +0000 (23:01 -0400)
committerMichael Poole <mdpoole@troilus.org>
Tue, 6 Aug 2013 03:01:51 +0000 (23:01 -0400)
commit389b4c485cac5cf8deff89e381020f2a38f1ad34
treecf7f296f13cbeae04c61a87dc8a9e987dad6ab1d
parent894ccd3b8d5acb0067562d26bf72228d3e617203
Avoid crashes when handling ET_EOF for IAuth stderr before stdout.

Because iauth_stderr_callback() ignores ET_DESTROY, we should destroy
IAuth stderr first.  Then, when iauth_sock_callback() handles ET_DESTROY
for the stdout socket, it can respawn the socket without generating a
second ET_DESTROY for stderr.
ircd/s_auth.c