diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-10-23 19:53:15 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-10-23 19:53:15 +0200 |
commit | d6a5476ee7af464a381bbeeec576ee58f3650a43 (patch) | |
tree | c19d8dab5fe71ad76f3d0f7698afc1300bf3443c /source3/nmbd/nmbd_subnetdb.c | |
parent | 55fd6b125c3e5ac135d124c291f5ae6102fcbb2f (diff) | |
download | samba-d6a5476ee7af464a381bbeeec576ee58f3650a43.tar.gz samba-d6a5476ee7af464a381bbeeec576ee58f3650a43.tar.bz2 samba-d6a5476ee7af464a381bbeeec576ee58f3650a43.zip |
Use sockaddr_storage only where we rely on the size, use sockaddr
otherwise (to clarify we can also pass in structs smaller than
sockaddr_storage, such as sockaddr_in).
Diffstat (limited to 'source3/nmbd/nmbd_subnetdb.c')
-rw-r--r-- | source3/nmbd/nmbd_subnetdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_subnetdb.c b/source3/nmbd/nmbd_subnetdb.c index 225def52cc..61af0bb4a4 100644 --- a/source3/nmbd/nmbd_subnetdb.c +++ b/source3/nmbd/nmbd_subnetdb.c @@ -260,7 +260,7 @@ bool create_subnets(void) * ignore it here. JRA. */ - if (is_loopback_addr(&iface->ip)) { + if (is_loopback_addr((struct sockaddr *)&iface->ip)) { DEBUG(2,("create_subnets: Ignoring loopback interface.\n" )); continue; } |