1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-22 07:33:16 +03:00

r26402: Require a talloc context in libnetif.

This commit is contained in:
Jelmer Vernooij
2007-12-11 22:23:20 +01:00
committed by Stefan Metzmacher
parent 9f975417cc
commit a35e51871b
26 changed files with 56 additions and 42 deletions

View File

@@ -36,12 +36,14 @@ static int ejs_sys_interfaces(MprVarHandle eid, int argc, struct MprVar **argv)
struct MprVar ret = mprArray("interfaces");
struct interface *ifaces;
load_interfaces(lp_interfaces(global_loadparm), &ifaces);
load_interfaces(NULL, lp_interfaces(global_loadparm), &ifaces);
count = iface_count(ifaces);
for (i=0;i<count;i++) {
mprAddArray(&ret, i, mprString(iface_n_ip(ifaces, i)));
}
talloc_free(ifaces);
mpr_Return(eid, ret);
return 0;
}