1
0
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:
Stefan Metzmacher 2006-10-09 08:32:51 +00:00 committed by Gerald (Jerry) Carter
parent a5ea82bb05
commit d64583a763

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