summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-04-09 14:51:17 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-04-09 14:51:17 +0000
commitf4db74e30a74f94374c668147ea85656db1d25e4 (patch)
tree3e77d9d31800e8c18f22c025118f90bcca5ae42d
parent427fb4a2812b4a3476b7dfd10d3a66fb756986da (diff)
downloadsamba-f4db74e30a74f94374c668147ea85656db1d25e4.tar.gz
samba-f4db74e30a74f94374c668147ea85656db1d25e4.tar.bz2
samba-f4db74e30a74f94374c668147ea85656db1d25e4.zip
Fix double free on error and typo
(This used to be commit c131c128e396a944e979992d9a5ac76e8b6e653b)
-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 72903d92c3..361cb8638a 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -1384,7 +1384,7 @@ static BOOL init_ldap_from_sam (struct ldapsam_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);
@@ -2126,7 +2126,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;
}