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:
parent
d70803ebe3
commit
5a1a08d428
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user