git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3aed9c8
)
get rid of warning on IRIX
author
Herb Lewis
<herb@samba.org>
Fri, 15 Aug 2003 02:01:56 +0000
(
02:01
+0000)
committer
Herb Lewis
<herb@samba.org>
Fri, 15 Aug 2003 02:01:56 +0000
(
02:01
+0000)
source/utils/net_rpc.c
patch
|
blob
|
history
diff --git
a/source/utils/net_rpc.c
b/source/utils/net_rpc.c
index 6addd336e2fa5fecd9c79a4533de666516a62eff..f14ae94906082ee4a0012519bf212756d7fa9a35 100644
(file)
--- a/
source/utils/net_rpc.c
+++ b/
source/utils/net_rpc.c
@@
-84,7
+84,14
@@
static DOM_SID *net_get_remote_domain_sid(struct cli_state *cli)
result = cli_lsa_query_info_policy(cli, mem_ctx, &pol, info_class,
domain_name, domain_sid);
if (!NT_STATUS_IS_OK(result)) {
result = cli_lsa_query_info_policy(cli, mem_ctx, &pol, info_class,
domain_name, domain_sid);
if (!NT_STATUS_IS_OK(result)) {
- goto error;
+ error:
+ fprintf(stderr, "could not obtain sid for domain %s\n", cli->domain);
+
+ if (!NT_STATUS_IS_OK(result)) {
+ fprintf(stderr, "error: %s\n", nt_errstr(result));
+ }
+
+ exit(1);
}
cli_lsa_close(cli, mem_ctx, &pol);
}
cli_lsa_close(cli, mem_ctx, &pol);
@@
-92,15
+99,6
@@
static DOM_SID *net_get_remote_domain_sid(struct cli_state *cli)
talloc_destroy(mem_ctx);
return domain_sid;
talloc_destroy(mem_ctx);
return domain_sid;
-
- error:
- fprintf(stderr, "could not obtain sid for domain %s\n", cli->domain);
-
- if (!NT_STATUS_IS_OK(result)) {
- fprintf(stderr, "error: %s\n", nt_errstr(result));
- }
-
- exit(1);
}
/**
}
/**