[PATCH] Fix NULL check after dereference.
Tim Potter
tpot at samba.org
Sun Feb 17 23:27:17 GMT 2008
---
source/utils/net_domain.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/source/utils/net_domain.c b/source/utils/net_domain.c
index 90d28b5..5cfe037 100644
--- a/source/utils/net_domain.c
+++ b/source/utils/net_domain.c
@@ -201,7 +201,7 @@ NTSTATUS netdom_get_domain_sid( TALLOC_CTX *mem_ctx, struct cli_state *cli,
cli_rpc_pipe_close(pipe_hnd); /* Done with this pipe */
/* Bail out if domain didn't get set. */
- if (!domain) {
+ if (!(*domain)) {
DEBUG(0, ("Could not get domain name.\n"));
return NT_STATUS_UNSUCCESSFUL;
}
--
1.5.2.5
More information about the samba-technical
mailing list