summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-04-09 14:49:34 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-04-09 14:49:34 +0000
commit3ae879a4d3e0eeb85a17d2e7ebb9d1d78a442870 (patch)
treeeb413812a3f0c76b27480ace10e0b4ccdbc5be3d /source3/passdb
parenta384176cb93ab5b3db56675674bf7b0d4778ecec (diff)
downloadsamba-3ae879a4d3e0eeb85a17d2e7ebb9d1d78a442870.tar.gz
samba-3ae879a4d3e0eeb85a17d2e7ebb9d1d78a442870.tar.bz2
samba-3ae879a4d3e0eeb85a17d2e7ebb9d1d78a442870.zip
Fix double free on error and typo
(This used to be commit 84b116f9c007c0f933af82462dff4324ffa53f0f)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_ldap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index eaef7f37a7..edae69f2cd 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -782,7 +782,7 @@ static BOOL init_ldap_from_sam (struct smb_ldap_privates *ldap_state,
rid = ldapsam_get_next_available_nua_rid(ldap_state);
if (rid == 0) {
DEBUG(0, ("NO user RID specified on account %s, and "
- "findining next available NUA RID failed, "
+ "finding next available NUA RID failed, "
"cannot store!\n",
pdb_get_username(sampass)));
ldap_mods_free(*mods, 1);
@@ -1520,7 +1520,6 @@ static NTSTATUS ldapsam_add_sam_account(struct pdb_methods *my_methods, SAM_ACCO
element_is_set_or_changed)) {
DEBUG(0, ("ldapsam_add_sam_account: init_ldap_from_sam failed!\n"));
ldap_msgfree(result);
- ldap_mods_free(mods, 1);
return NT_STATUS_UNSUCCESSFUL;
}