diff options
author | Jeremy Allison <jra@samba.org> | 2007-01-19 23:08:20 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-01-19 23:08:20 +0000 |
commit | 62266e01268539e1b07f063da0bfa122bf1203d0 (patch) | |
tree | 9864fd849ba58e24e04b44134a5920aac3b07603 /source | |
parent | de4228b2f8b869292df69345c436677e61fa3b03 (diff) | |
download | samba-62266e01268539e1b07f063da0bfa122bf1203d0.tar.gz samba-62266e01268539e1b07f063da0bfa122bf1203d0.tar.xz samba-62266e01268539e1b07f063da0bfa122bf1203d0.zip |
r20917: Fix missing error returns pointed out by "Li, Ying (ESG)" <ying.li2@hp.com>
Jeremy.
Diffstat (limited to 'source')
-rw-r--r-- | source/utils/net_rpc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/utils/net_rpc.c b/source/utils/net_rpc.c index 29fba09eb72..94708ad2ccf 100644 --- a/source/utils/net_rpc.c +++ b/source/utils/net_rpc.c @@ -5545,6 +5545,7 @@ static int rpc_trustdom_establish(int argc, const char **argv) if (NT_STATUS_IS_ERR(nt_status)) { DEBUG(0, ("Couldn't connect to domain %s controller. Error was %s.\n", domain_name, nt_errstr(nt_status))); + return -1; } /* @@ -5554,6 +5555,8 @@ static int rpc_trustdom_establish(int argc, const char **argv) if (!cli_get_pdc_name(cli, domain_name, (char*)pdc_name)) { DEBUG(0, ("NetServerEnum2 error: Couldn't find primary domain controller\ for domain %s\n", domain_name)); + cli_shutdown(cli); + return -1; } if (!(mem_ctx = talloc_init("establishing trust relationship to " |