Returning proper error code on memory shortage with iso_node_lookup_attr().

This commit is contained in:
Thomas Schmitt 2011-05-06 13:30:37 +02:00
parent e3329a98a9
commit fed8b23017
1 changed files with 1 additions and 1 deletions

View File

@ -1621,7 +1621,7 @@ int iso_aa_lookup_attr(unsigned char *aa_string, char *name,
*value_length = value_lengths[i];
*value = calloc(*value_length + 1, 1);
if (*value == NULL) {
ret = ISO_OUT_OF_MEM;
found = ISO_OUT_OF_MEM;
break;
}
if (*value_length > 0)