mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +03:00
r19193: merge from samba4:
fixed another checker warning and a possible error on allocation failure metze
This commit is contained in:
parent
a5ea82bb05
commit
d64583a763
@ -232,13 +232,15 @@ static int ltdb_index_dn_simple(struct ldb_module *module,
|
||||
|
||||
list->dn = talloc_array(list, char *, el->num_values);
|
||||
if (!list->dn) {
|
||||
break;
|
||||
talloc_free(msg);
|
||||
return -1;
|
||||
}
|
||||
|
||||
for (j=0;j<el->num_values;j++) {
|
||||
list->dn[list->count] =
|
||||
talloc_strdup(list->dn, (char *)el->values[j].data);
|
||||
if (!list->dn[list->count]) {
|
||||
talloc_free(msg);
|
||||
return -1;
|
||||
}
|
||||
list->count++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user