s3-rpc_server: Copy correct local tsocket address.
[idra/samba.git] / source3 / rpc_server / rpc_handles.c
index c40029bd0889f986adf63144773e8fc9c7cf142d..f9251eeb94cf3afecc2715b1695b8624f0f621f6 100644 (file)
@@ -76,7 +76,7 @@ int make_base_pipes_struct(TALLOC_CTX *mem_ctx,
        }
 
        if (local_address) {
-               p->local_address = tsocket_address_copy(remote_address, p);
+               p->local_address = tsocket_address_copy(local_address, p);
                if (p->local_address == NULL) {
                        talloc_free(p);
                        return ENOMEM;