diff options
author | Gerald Carter <jerry@samba.org> | 2005-09-22 18:49:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:03:41 -0500 |
commit | 9a82b0da7cf53ff6e01f288555e4766ab7307333 (patch) | |
tree | 097ff644d06d350da3f43987b131d2674294dfaf | |
parent | c762908074c45baacde1df04b633e01308030864 (diff) | |
download | samba-9a82b0da7cf53ff6e01f288555e4766ab7307333.tar.gz samba-9a82b0da7cf53ff6e01f288555e4766ab7307333.tar.bz2 samba-9a82b0da7cf53ff6e01f288555e4766ab7307333.zip |
r10431: fix segfault when the pip open fails in 'net rpc' commands
(This used to be commit ffe4188847aabcbfbfadc0f5b60d0eeea9f13d83)
-rw-r--r-- | source3/utils/net_rpc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index ac7e566344..e80e8e6f5c 100644 --- 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; } } |