git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba726b5
)
s4-anr: check for allocation failure before use
author
Andrew Tridgell
<tridge@samba.org>
Fri, 10 Sep 2010 10:14:29 +0000
(20:14 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 15 Sep 2010 05:39:33 +0000
(15:39 +1000)
source4/dsdb/samdb/ldb_modules/anr.c
patch
|
blob
|
history
diff --git
a/source4/dsdb/samdb/ldb_modules/anr.c
b/source4/dsdb/samdb/ldb_modules/anr.c
index 68f007ebd97dce53da0e8eb3bca9327d89b22133..15a8a7aa483be56382d63a83439c35e672295a79 100644
(file)
--- a/
source4/dsdb/samdb/ldb_modules/anr.c
+++ b/
source4/dsdb/samdb/ldb_modules/anr.c
@@
-149,10
+149,10
@@
static int anr_replace_value(struct anr_context *ac,
if (match->length > 1 && match->data[0] == '=') {
struct ldb_val *match2 = talloc(mem_ctx, struct ldb_val);
- *match2 = data_blob_const(match->data+1, match->length - 1);
if (match2 == NULL){
return ldb_oom(ldb);
}
+ *match2 = data_blob_const(match->data+1, match->length - 1);
match = match2;
op = LDB_OP_EQUALITY;
} else {