1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r16581: Fix Klocwork #2017. Possible null deref.

Jeremy.
(This used to be commit 6967fd4cef)
This commit is contained in:
Jeremy Allison 2006-06-28 00:07:53 +00:00 committed by Gerald (Jerry) Carter
parent d70803ebe3
commit 5a1a08d428

View File

@ -203,6 +203,11 @@ BOOL create_subnets(void)
for (i = 0 ; i < num_interfaces; i++) {
struct interface *iface = get_interface(i);
if (!iface) {
DEBUG(2,("create_subnets: can't get interface %d.\n", i ));
continue;
}
/*
* We don't want to add a loopback interface, in case
* someone has added 127.0.0.1 for smbd, nmbd needs to