swrap: Do not log if we are over the limit in find_socket_info_index()
authorAndreas Schneider <asn@samba.org>
Tue, 13 Nov 2018 17:44:39 +0000 (18:44 +0100)
committerAndreas Schneider <asn@samba.org>
Tue, 13 Nov 2018 18:15:51 +0000 (19:15 +0100)
commit97314589dec9feca4c10c2350dfbd7702ff44cb1
treeea1e397de692992f29e944ceba40606cd615afc6
parent9b01066059a002d15996d797d911fdd693e29cb7
swrap: Do not log if we are over the limit in find_socket_info_index()

There are applications which do:

    for (fd = 0; fd <= getdtablesize(); fd++) {
        close(fd)
    };

This produced millions of error messsages.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
src/socket_wrapper.c