diff options
author | Volker Lendecke <vl@samba.org> | 2009-05-18 10:32:27 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-05-18 13:38:55 +0200 |
commit | bbbf9f13add12906480e6697eb56a2680dabe160 (patch) | |
tree | eb7e7ef800154d0a862231038431d4bccb821ceb /source3/lib/util_sock.c | |
parent | 67a2e629919bdc5a783e64636890fec2a7dfa9f8 (diff) | |
download | samba-bbbf9f13add12906480e6697eb56a2680dabe160.tar.gz samba-bbbf9f13add12906480e6697eb56a2680dabe160.tar.bz2 samba-bbbf9f13add12906480e6697eb56a2680dabe160.zip |
Fix bug 5681: Do not limit the number of network interfaces
Jeremy as far as I can see there is no real technical reason to limit the
number of interfaces. If you like this patch, can you please merge it to 3.4?
If you don't please tell me :-)
Thanks,
Volker
Diffstat (limited to 'source3/lib/util_sock.c')
-rw-r--r-- | source3/lib/util_sock.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index 1d7a82d7a5..40e2887440 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -1948,12 +1948,7 @@ bool is_myname_or_ipaddr(const char *s) return false; } - nics = TALLOC_ARRAY(ctx, struct iface_struct, - MAX_INTERFACES); - if (!nics) { - return false; - } - n = get_interfaces(nics, MAX_INTERFACES); + n = get_interfaces(talloc_tos(), &nics); for (i=0; i<n; i++) { if (sockaddr_equal((struct sockaddr *)&nics[i].ip, (struct sockaddr *)&ss)) { TALLOC_FREE(nics); |