]> arthur.barton.de Git - ngircd.git/commit
Correctly handle return code of Handle_Write()
authorAlexander Barton <alex@barton.de>
Tue, 20 Aug 2013 23:28:49 +0000 (01:28 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 23 Aug 2013 19:43:37 +0000 (21:43 +0200)
commitd24df64397015732bc6cc1c36a4710fc4db271f1
treec53c2f79dc574581f5613fc85ba0386f39d3ab1b
parentc45d9dd1f08fddb95fa01d62c69848cd753a3161
Correctly handle return code of Handle_Write()

There have been code paths that ignored the return code of Handle_Write()
when sending "notice auth" messages to new clients connecting to the
server. But because Handle_Write() would have closed the client connection
again if an error occurred, this would have resulted in new errors and
assert()'s later on that could have crashed the server (denial of service).

Only setups having the configuration option "NoticeAuth" enabled are
affected, which is not the default.

CVE-2013-5580.

(cherry picked from commit 309122017ebc6fff039a7cab1b82f632853d82d5)
src/ngircd/conn.c