Returning proper error code on memory shortage with iso_node_lookup_attr().
This commit is contained in:
parent
e3329a98a9
commit
fed8b23017
@ -1621,7 +1621,7 @@ int iso_aa_lookup_attr(unsigned char *aa_string, char *name,
|
|||||||
*value_length = value_lengths[i];
|
*value_length = value_lengths[i];
|
||||||
*value = calloc(*value_length + 1, 1);
|
*value = calloc(*value_length + 1, 1);
|
||||||
if (*value == NULL) {
|
if (*value == NULL) {
|
||||||
ret = ISO_OUT_OF_MEM;
|
found = ISO_OUT_OF_MEM;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (*value_length > 0)
|
if (*value_length > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user