git.samba.org
/
idra
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a43ef5
)
s3-rpc_server: Duplicate the pipe name.
author
Andreas Schneider
<asn@samba.org>
Thu, 21 Jul 2011 09:21:30 +0000
(11:21 +0200)
committer
Andreas Schneider
<asn@cryptomilk.org>
Thu, 21 Jul 2011 16:40:23 +0000
(18:40 +0200)
source3/rpc_server/rpc_server.c
patch
|
blob
|
history
diff --git
a/source3/rpc_server/rpc_server.c
b/source3/rpc_server/rpc_server.c
index a489cf13c088737807a6c03459994044c2a1e8d7..f603b582c8ad724620c1f4596477035932f3c7db 100644
(file)
--- a/
source3/rpc_server/rpc_server.c
+++ b/
source3/rpc_server/rpc_server.c
@@
-355,7
+355,14
@@
static void named_pipe_accept_function(struct tevent_context *ev_ctx,
close(fd);
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->msg_ctx = msg_ctx;