git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57efe48
)
s3:nmbd_packets: return the used number of sockets in create_listen_fdset() (bug...
author
Stefan Metzmacher
<metze@samba.org>
Thu, 30 Jun 2011 07:56:06 +0000
(09:56 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Mon, 4 Jul 2011 19:54:08 +0000
(21:54 +0200)
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
patch
|
blob
|
history
diff --git
a/source/nmbd/nmbd_packets.c
b/source/nmbd/nmbd_packets.c
index 03e53623e2178367a0721d8c2693afa7cb8ed63e..bb65e39bfc02a4b5f35447a7f0282c6492611305 100644
(file)
--- a/
source/nmbd/nmbd_packets.c
+++ b/
source/nmbd/nmbd_packets.c
@@
-1742,7
+1742,7
@@
only use %d.\n", (count*2) + 2, FD_SETSIZE));
*maxfd = MAX( *maxfd, subrec->dgram_sock);
}
- *listen_number =
(count*2) + 2
;
+ *listen_number =
num
;
SAFE_FREE(*ppset);
SAFE_FREE(*psock_array);