mirror of
https://github.com/samba-team/samba.git
synced 2025-03-03 12:58:35 +03:00
s3-rpc_server: Duplicate the pipe name.
This commit is contained in:
parent
3a43ef52db
commit
19288f9784
@ -355,7 +355,14 @@ static void named_pipe_accept_function(struct tevent_context *ev_ctx,
|
|||||||
close(fd);
|
close(fd);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
npc->pipe_name = pipe_name;
|
|
||||||
|
npc->pipe_name = talloc_strdup(npc, pipe_name);
|
||||||
|
if (npc->pipe_name == NULL) {
|
||||||
|
DEBUG(0, ("Out of memory!\n"));
|
||||||
|
TALLOC_FREE(npc);
|
||||||
|
close(fd);
|
||||||
|
return;
|
||||||
|
}
|
||||||
npc->ev = ev_ctx;
|
npc->ev = ev_ctx;
|
||||||
npc->msg_ctx = msg_ctx;
|
npc->msg_ctx = msg_ctx;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user