git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c762908
)
r10431: fix segfault when the pip open fails in 'net rpc' commands
author
Gerald Carter
<jerry@samba.org>
Thu, 22 Sep 2005 18:49:23 +0000
(18:49 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:03:41 +0000
(11:03 -0500)
(This used to be commit
ffe4188847aabcbfbfadc0f5b60d0eeea9f13d83
)
source3/utils/net_rpc.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_rpc.c
b/source3/utils/net_rpc.c
index ac7e5663441e87b1514d3bfd157affba927581d6..e80e8e6f5c05b1c9360a503967c70539ed3e1968 100644
(file)
--- a/
source3/utils/net_rpc.c
+++ b/
source3/utils/net_rpc.c
@@
-131,6
+131,8
@@
int run_rpc_command(struct cli_state *cli_arg, const int pipe_idx, int conn_flag
if (!(conn_flags & NET_FLAGS_NO_PIPE)) {
if (!cli_nt_session_open(cli, pipe_idx)) {
DEBUG(0, ("Could not initialise pipe\n"));
+ cli_shutdown(cli);
+ return -1;
}
}