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

svn commit: samba r19067 - in branches/SAMBA_3_0/source/lib/ldb/common:

Subject: svn commit: samba r19067 - in branches/SAMBA_3_0/source/lib/ldb/common: .
From:
Date: Wed, 4 Oct 2006 18:22:51 +0000 GMT
Author: vlendec
Date: 2006-10-04 18:22:51 +0000 (Wed, 04 Oct 2006)
New Revision: 19067

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

Log:
Fix a potential NULL dereference
Modified:
   branches/SAMBA_3_0/source/lib/ldb/common/ldb_dn.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/ldb/common/ldb_dn.c
===================================================================
--- branches/SAMBA_3_0/source/lib/ldb/common/ldb_dn.c   2006-10-04 16:33:42 UTC 
(rev 19066)
+++ branches/SAMBA_3_0/source/lib/ldb/common/ldb_dn.c   2006-10-04 18:22:51 UTC 
(rev 19067)
@@ -345,6 +345,10 @@
 
        /* Allocate a structure to hold the exploded DN */
        edn = ldb_dn_new(mem_ctx);
+       if (edn == NULL) {
+               return NULL;
+       }
+
        pdn = NULL;
 
        /* Empty DNs */

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