s3:nmbd_packets: return the used number of sockets in create_listen_fdset() (bug...
commitd9192349311c59e7ec5b58747fa8c393af5f9d3d
authorStefan Metzmacher <metze@samba.org>
Thu, 30 Jun 2011 07:56:06 +0000 (30 09:56 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 18 Aug 2011 19:15:21 +0000 (18 21:15 +0200)
tree39d89198aa406499c1ae287c7f581c748fd4d91b
parent38ccc2d665bb3f80fcb46a21b7646f3e0a09b7c9
s3:nmbd_packets: return the used number of sockets in create_listen_fdset() (bug #8276)

Fix bug #7949 (DoS in Winbind and smbd with many file descriptors open)
(commit feb3fcd0fa4bda0967b881315595d7702f4d1752) changed the bahavior,
so that we skipped some sockets.

This should work for v3-4-test.

metze
(cherry picked from commit 11b4dec29c9306531e73d5f4c12f89934dd538b4)
source3/nmbd/nmbd_packets.c