samba-cvs.cvs
[Top] [All Lists]

svn commit: samba r19485 - in branches: SAMBA_3_0/source/lib/ldb/ldb_lda

Subject: svn commit: samba r19485 - in branches: SAMBA_3_0/source/lib/ldb/ldb_ldap SAMBA_4_0/source/lib/ldb/ldb_ldap
From:
Date: Tue, 24 Oct 2006 20:15:14 +0000 GMT
Author: vlendec
Date: 2006-10-24 20:15:13 +0000 (Tue, 24 Oct 2006)
New Revision: 19485

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19485

Log:
Fix Coverity # 319
Modified:
   branches/SAMBA_3_0/source/lib/ldb/ldb_ldap/ldb_ldap.c
   branches/SAMBA_4_0/source/lib/ldb/ldb_ldap/ldb_ldap.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/ldb/ldb_ldap/ldb_ldap.c
===================================================================
--- branches/SAMBA_3_0/source/lib/ldb/ldb_ldap/ldb_ldap.c       2006-10-24 
20:12:38 UTC (rev 19484)
+++ branches/SAMBA_3_0/source/lib/ldb/ldb_ldap/ldb_ldap.c       2006-10-24 
20:15:13 UTC (rev 19485)
@@ -817,7 +817,7 @@
        }
 
        *module = talloc(ldb, struct ldb_module);
-       if (!module) {
+       if (*module == NULL) {
                ldb_oom(ldb);
                talloc_free(lldb);
                return -1;

Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_ldap/ldb_ldap.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/ldb_ldap/ldb_ldap.c       2006-10-24 
20:12:38 UTC (rev 19484)
+++ branches/SAMBA_4_0/source/lib/ldb/ldb_ldap/ldb_ldap.c       2006-10-24 
20:15:13 UTC (rev 19485)
@@ -817,7 +817,7 @@
        }
 
        *module = talloc(ldb, struct ldb_module);
-       if (!module) {
+       if (*module == NULL) {
                ldb_oom(ldb);
                talloc_free(lldb);
                return -1;

<Prev in Thread] Current Thread [Next in Thread>
  • svn commit: samba r19485 - in branches: SAMBA_3_0/source/lib/ldb/ldb_ldap SAMBA_4_0/source/lib/ldb/ldb_ldap, vlendec <=