gitlab.arm.com will be in the maintainance mode on Wednesday June 29th 01:00 - 10:00 (UTC+1). Repositories is read only during the maintainance.

Commit bb1bba3d authored by Liming Gao's avatar Liming Gao
Browse files

NetworkPkg: Fix invalid pointer for DNS response token on error

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3719

This issue is introduced by the commit 43d7e607

.
Token->RspData.H2AData is de-allocated on error but it is not
set to NULL. HTTP module attempts to free again and cause assert.
Signed-off-by: default avatarBaraneedharan Anbazhagan <anbazhagan@hp.com>
Reviewed-by: default avatarWu Jiaxin <jiaxin.wu@intel.com>
parent 4c7ce0d2
......@@ -1700,6 +1700,7 @@ ON_EXIT:
}
FreePool (Dns4TokenEntry->Token->RspData.H2AData);
Dns4TokenEntry->Token->RspData.H2AData = NULL;
}
}
}
......@@ -1731,6 +1732,7 @@ ON_EXIT:
}
FreePool (Dns6TokenEntry->Token->RspData.H2AData);
Dns6TokenEntry->Token->RspData.H2AData = NULL;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment