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:54:08 +0000 (21:54 +0200)
commitd9c0ace4311560a6f4a4df6d722b143a58cc6e9d
tree67349afa7b98860a82536e6af87ac7893297d878
parent57efe48eb15da3cc729ebdf916f850ecac20b695
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-3-test.

metze
source/nmbd/nmbd_packets.c