r3278: - rewrote the client side rpc connection code to use lib/socket/
[bbaumbach/samba-autobuild/.git] / source4 / lib / interface.c
index 14abfbd09ad3d934160ee8c244473a9a5f62480e..b842fbb292a35d14eed28c1ef41f0333ba6249d9 100644 (file)
@@ -116,7 +116,7 @@ static void interpret_interface(TALLOC_CTX *mem_ctx, const char *token)
        /* maybe it is a DNS name */
        p = strchr_m(token,'/');
        if (!p) {
-               ip = *interpret_addr2(mem_ctx, token);
+               ip = interpret_addr2(token);
                for (i=0;i<total_probed;i++) {
                        if (ip.s_addr == probed_ifaces[i].ip.s_addr &&
                            !ip_equal(allones_ip, probed_ifaces[i].netmask)) {
@@ -132,10 +132,10 @@ static void interpret_interface(TALLOC_CTX *mem_ctx, const char *token)
        /* parse it into an IP address/netmasklength pair */
        *p++ = 0;
 
-       ip = *interpret_addr2(mem_ctx, token);
+       ip = interpret_addr2(token);
 
        if (strlen(p) > 2) {
-               nmask = *interpret_addr2(mem_ctx, p);
+               nmask = interpret_addr2(p);
        } else {
                nmask.s_addr = htonl(((ALLONES >> atoi(p)) ^ ALLONES));
        }
@@ -174,8 +174,8 @@ void load_interfaces(void)
                return;
     }
 
-       allones_ip = *interpret_addr2(mem_ctx, "255.255.255.255");
-       loopback_ip = *interpret_addr2(mem_ctx, "127.0.0.1");
+       allones_ip = interpret_addr2("255.255.255.255");
+       loopback_ip = interpret_addr2("127.0.0.1");
 
        SAFE_FREE(probed_ifaces);