summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-10-15 09:25:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:44:45 -0500
commita59cca6f9796ad44e7899e463b20260da1e78fdb (patch)
tree89fe1d9576ddcf28d78c48325c1e9a3ada1e9fc6 /source4/scripting/ejs
parentd102d5ab5785eaaa401b78a16c3446ae7ae59e78 (diff)
downloadsamba-a59cca6f9796ad44e7899e463b20260da1e78fdb.tar.gz
samba-a59cca6f9796ad44e7899e463b20260da1e78fdb.tar.bz2
samba-a59cca6f9796ad44e7899e463b20260da1e78fdb.zip
r11083: use the addresses from the record
metze (This used to be commit 5d46cdd1ee8ae2a49a81f0a36a4c3f12d7635de9)
Diffstat (limited to 'source4/scripting/ejs')
-rw-r--r--source4/scripting/ejs/smbcalls_samba3.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/scripting/ejs/smbcalls_samba3.c b/source4/scripting/ejs/smbcalls_samba3.c
index 0e4743eca9..4a4977be60 100644
--- a/source4/scripting/ejs/smbcalls_samba3.c
+++ b/source4/scripting/ejs/smbcalls_samba3.c
@@ -405,7 +405,9 @@ static struct MprVar mprWinsEntries(struct samba3 *samba3)
ips = mprObject("array");
for (j = 0; j < samba3->winsdb_entries[i].ip_count; j++) {
- mprAddArray(&ips, j, mprString(iface_n_ip(i)));
+ const char *addr;
+ addr = sys_inet_ntoa(samba3->winsdb_entries[i].ips[j]);
+ mprAddArray(&ips, j, mprString(addr));
}
mprSetVar(&w, "ips", ips);