summaryrefslogtreecommitdiffstats
path: root/source/passdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-03-21 03:53:44 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-03-21 03:53:44 +0000
commit56009ffbaa00259d15f286248a7ab73c55371819 (patch)
tree97a679fffea09c3a18aa64c134196a5237704da7 /source/passdb
parentbe399f5823bb8dfe6cc28d58aaeceb51f1b7382b (diff)
downloadsamba-56009ffbaa00259d15f286248a7ab73c55371819.tar.gz
samba-56009ffbaa00259d15f286248a7ab73c55371819.tar.xz
samba-56009ffbaa00259d15f286248a7ab73c55371819.zip
Make sure to initaliase SAM_ACCOUNT pointers to NULL, otherwise pdb_init_sam()
fails. Andrew Bartlett
Diffstat (limited to 'source/passdb')
-rw-r--r--source/passdb/passdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/passdb/passdb.c b/source/passdb/passdb.c
index 6a3c4bb7933..2f19698ffa9 100644
--- a/source/passdb/passdb.c
+++ b/source/passdb/passdb.c
@@ -92,7 +92,7 @@ NTSTATUS pdb_init_sam_talloc(TALLOC_CTX *mem_ctx, SAM_ACCOUNT **user)
if (*user != NULL) {
DEBUG(0,("pdb_init_sam: SAM_ACCOUNT was non NULL\n"));
#if 0
- smb_panic("NULL pointer passed to pdb_init_sam\n");
+ smb_panic("non-NULL pointer passed to pdb_init_sam\n");
#endif
return NT_STATUS_UNSUCCESSFUL;
}
@@ -750,7 +750,7 @@ DOM_SID *local_uid_to_sid(DOM_SID *psid, uid_t uid)
{
extern DOM_SID global_sam_sid;
struct passwd *pass;
- SAM_ACCOUNT *sam_user;
+ SAM_ACCOUNT *sam_user = NULL;
sid_copy(psid, &global_sam_sid);
@@ -786,7 +786,7 @@ BOOL local_sid_to_uid(uid_t *puid, DOM_SID *psid, enum SID_NAME_USE *name_type)
uint32 rid;
fstring str;
struct passwd *pass;
- SAM_ACCOUNT *sam_user;
+ SAM_ACCOUNT *sam_user = NULL;
*name_type = SID_NAME_UNKNOWN;