diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/interface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/interface.c b/source3/lib/interface.c index 2bd7d6ddbe..dea01c6011 100644 --- a/source3/lib/interface.c +++ b/source3/lib/interface.c @@ -188,6 +188,10 @@ void load_interfaces(void) if (total_probed > 0) { probed_ifaces = memdup(ifaces, sizeof(ifaces[0])*total_probed); + if (!probed_ifaces) { + DEBUG(0,("ERROR: memdup failed\n")); + exit(1); + } } /* if we don't have a interfaces line then use all broadcast capable |