summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs/smbcalls_samba3.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/ejs/smbcalls_samba3.c')
-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);