summaryrefslogtreecommitdiff
path: root/source/nmbd/nmbd_subnetdb.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-06-15 12:14:45 +0000
committerGerald Carter <jerry@samba.org>2006-06-15 12:14:45 +0000
commit7e6fe8e3d3bb8398173778632366303d7ecef37e (patch)
tree4b927e24d293628874d407d2a8f36d90247c7a4a /source/nmbd/nmbd_subnetdb.c
parentad586149c6ede551f62d3511eba5ab025df1ccbf (diff)
downloadsamba-7e6fe8e3d3bb8398173778632366303d7ecef37e.tar.gz
r16254: pulling klocwork fixes for 3.0.23rc3 (current up to r16251)
Diffstat (limited to 'source/nmbd/nmbd_subnetdb.c')
-rw-r--r--source/nmbd/nmbd_subnetdb.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/nmbd/nmbd_subnetdb.c b/source/nmbd/nmbd_subnetdb.c
index c3640028d27..5a93d8bec03 100644
--- a/source/nmbd/nmbd_subnetdb.c
+++ b/source/nmbd/nmbd_subnetdb.c
@@ -220,7 +220,13 @@ BOOL create_subnets(void)
if (lp_we_are_a_wins_server()) {
/* Pick the first interface ip address as the WINS server ip. */
- unicast_ip = *iface_n_ip(0);
+ struct in_addr *nip = iface_n_ip(0);
+
+ if (!nip) {
+ return False;
+ }
+
+ unicast_ip = *nip;
} else {
/* note that we do not set the wins server IP here. We just
set it at zero and let the wins registration code cope