r13979: We've dereferenced my_methods already, so there's no point in checking for
authorVolker Lendecke <vlendec@samba.org>
Tue, 7 Mar 2006 19:24:28 +0000 (19:24 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:11:02 +0000 (11:11 -0500)
!= NULL. Coverity #149.

Volker

source/passdb/pdb_ldap.c

index 8429d50b3803f9f73a1a93642fab260f6e56627f..72ec883aca6f379e34ebd0c14a272a0f56d5b414 100644 (file)
@@ -1516,7 +1516,7 @@ static NTSTATUS ldapsam_modify_entry(struct pdb_methods *my_methods,
        struct ldapsam_privates *ldap_state = (struct ldapsam_privates *)my_methods->private_data;
        int rc;
        
-       if (!my_methods || !newpwd || !dn) {
+       if (!newpwd || !dn) {
                return NT_STATUS_INVALID_PARAMETER;
        }