提交 74face42 编写于 作者: J John Ferlan

secret: Need to set data->error on VIR_ALLOC_N failure

Commit id 'bb1fba62' neglected to set when creating the function.
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
上级 6b5ac3c7
......@@ -457,8 +457,10 @@ virSecretObjListGetHelper(void *payload,
if (data->uuids) {
char *uuidstr;
if (VIR_ALLOC_N(uuidstr, VIR_UUID_STRING_BUFLEN) < 0)
if (VIR_ALLOC_N(uuidstr, VIR_UUID_STRING_BUFLEN) < 0) {
data->error = true;
goto cleanup;
}
virUUIDFormat(obj->def->uuid, uuidstr);
data->uuids[data->got] = uuidstr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册