dsdb: Fix CID 1034803 Dereference null return value
authorVolker Lendecke <vl@samba.org>
Tue, 23 Jun 2015 12:40:42 +0000 (14:40 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 23 Jun 2015 20:12:09 +0000 (22:12 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dsdb/samdb/ldb_modules/util.c

index 513dc060cec0914995c8acf5a3a9b3ec9cdef319..1455760061cecc9ea1836cc5e2a6b3be68d8bcc1 100644 (file)
@@ -1192,6 +1192,9 @@ int dsdb_module_constrainted_update_int32(struct ldb_module *module,
        int ret;
 
        msg = ldb_msg_new(module);
+       if (msg == NULL) {
+               return ldb_module_oom(module);
+       }
        msg->dn = dn;
 
        ret = dsdb_msg_constrainted_update_int32(module,