diff --git a/source4/lib/socket/interface.c b/source4/lib/socket/interface.c index 42e1946..144268b 100644 --- a/source4/lib/socket/interface.c +++ b/source4/lib/socket/interface.c @@ -323,7 +323,9 @@ void load_interface_list(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, s if (!*local_interfaces) { DEBUG(0,("WARNING: no network interfaces found\n")); } - talloc_free(ifaces); + if (total_probed > 0) { + talloc_free(ifaces); + } } /**