mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3: Fix Coverity ID 2473, UNINIT
Signed-off-by: Günther Deschner <gd@samba.org>
This commit is contained in:
parent
0958695022
commit
d2d1d17323
@ -973,7 +973,6 @@ static NTSTATUS ipasam_add_posix_account_objectclass(struct ldapsam_privates *ld
|
||||
{
|
||||
int ret;
|
||||
LDAPMod **mods = NULL;
|
||||
NTSTATUS status;
|
||||
|
||||
smbldap_set_mod(&mods, LDAP_MOD_ADD,
|
||||
"objectclass", "posixAccount");
|
||||
@ -995,7 +994,7 @@ static NTSTATUS ipasam_add_posix_account_objectclass(struct ldapsam_privates *ld
|
||||
if (ret != LDAP_SUCCESS) {
|
||||
DEBUG(1, ("failed to modify/add user with uid = %s (dn = %s)\n",
|
||||
username, dn));
|
||||
return status;
|
||||
return NT_STATUS_LDAP(ret);
|
||||
}
|
||||
|
||||
return NT_STATUS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user