1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-29 13:49:30 +03:00

r19114: fixed another checker warning and a possible error on allocation

failure
This commit is contained in:
Andrew Tridgell
2006-10-06 06:52:30 +00:00
committed by Gerald (Jerry) Carter
parent d12550af01
commit bc02f7ef96

View File

@ -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++;