p);
if (!NT_STATUS_IS_OK(status)) {
close(fd);
- return status;
+ goto done;
}
}
}
sizeof(struct sockaddr_storage),
&bind_addr);
if (rc < 0) {
- return NT_STATUS_NO_MEMORY;
+ status = NT_STATUS_NO_MEMORY;
+ goto done;
}
addr = tsocket_address_inet_addr_string(bind_addr,
tmp_ctx);
if (addr == NULL) {
- return NT_STATUS_NO_MEMORY;
+ status = NT_STATUS_NO_MEMORY;
+ goto done;
}
status = dcerpc_binding_vector_add_port(iface,
addr,
p);
if (!NT_STATUS_IS_OK(status)) {
- return status;
+ goto done;
}
}
}
&ss,
port);
if (p == 0) {
- return NT_STATUS_UNSUCCESSFUL;
+ status = NT_STATUS_UNSUCCESSFUL;
+ goto done;
}
if (bvec != NULL) {
sock_tok,
p);
if (!NT_STATUS_IS_OK(status)) {
- return status;
+ goto done;
}
}
}