s3:nmbd_packets: return the used number of sockets in create_listen_fdset() (bug...
authorStefan Metzmacher <metze@samba.org>
Thu, 30 Jun 2011 07:56:06 +0000 (09:56 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 4 Jul 2011 19:53:42 +0000 (21:53 +0200)
commit11b4dec29c9306531e73d5f4c12f89934dd538b4
tree556e8a26f948c86de12870a29df2dfbf539cf24d
parentc943af7ff13c64343e5246b27a7416627bffd365
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
source3/nmbd/nmbd_packets.c