summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-09-03 00:52:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:36:26 -0500
commit5d2d627cde56af4408d3379c4e33c815ebeea124 (patch)
treeadf1c5e9276e95fcb8d8f4fa3a6750d4265bcdb1
parent52d995feb0565b458e026063e3bf3c259846bc8e (diff)
downloadsamba-5d2d627cde56af4408d3379c4e33c815ebeea124.tar.gz
samba-5d2d627cde56af4408d3379c4e33c815ebeea124.tar.bz2
samba-5d2d627cde56af4408d3379c4e33c815ebeea124.zip
r9980: Fix some warnings.
(This used to be commit 716011dd92d65caacb31ae399b580defa4e6fb2d)
-rw-r--r--source4/rpc_server/drsuapi/drsuapi_cracknames.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/rpc_server/drsuapi/drsuapi_cracknames.c b/source4/rpc_server/drsuapi/drsuapi_cracknames.c
index c88f7a5261..8d22246316 100644
--- a/source4/rpc_server/drsuapi/drsuapi_cracknames.c
+++ b/source4/rpc_server/drsuapi/drsuapi_cracknames.c
@@ -243,7 +243,7 @@ static WERROR DsCrackNameOneName(struct drsuapi_bind_state *b_state, TALLOC_CTX
krb5_error_code ret;
const char *domain_filter = NULL;
const char *result_filter = NULL;
- struct ldb_dn *name_dn;
+ struct ldb_dn *name_dn = NULL;
struct smb_krb5_context *smb_krb5_context;
ret = smb_krb5_init_context(mem_ctx, &smb_krb5_context);
@@ -554,8 +554,7 @@ static WERROR DsCrackNameOneFilter(struct drsuapi_bind_state *b_state, TALLOC_CT
}
case DRSUAPI_DS_NAME_FORMAT_NT4_ACCOUNT: {
const struct dom_sid *sid = samdb_result_dom_sid(mem_ctx, result_res[0], "objectSid");
- const char *_dom;
- const char *_acc = "";
+ const char *_acc = "", *_dom = "";
if ((sid->num_auths < 4) || (sid->num_auths > 5)) {
info1->status = DRSUAPI_DS_NAME_STATUS_NO_MAPPING;