Skip to content

Commit

Permalink
Fix GetAddressInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Drab committed Apr 22, 2023
1 parent 3342683 commit 6044592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viosock/wsk/provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ VioWskGetAddressInfo(
goto CompleteIrp;
}

VMAddr = ExAllocatePoolWithTag(NonPagedPool, sizeof(SOCKADDR_VM), VIOSOCK_WSK_MEMORY_TAG);
VMAddr = ExAllocatePoolUninitialized(NonPagedPool, sizeof(SOCKADDR_VM), VIOSOCK_WSK_MEMORY_TAG);
if (!VMAddr)
{
Status = STATUS_INSUFFICIENT_RESOURCES;
Expand All @@ -233,7 +233,7 @@ VioWskGetAddressInfo(
VMAddr->svm_family = AF_VSOCK;
VMAddr->svm_cid = Cid;
VMAddr->svm_port = Port;
AddrInfo = ExAllocatePoolWithTag(PagedPool, sizeof(ADDRINFOEXW), VIOSOCK_WSK_MEMORY_TAG);
AddrInfo = ExAllocatePoolUninitialized(PagedPool, sizeof(ADDRINFOEXW), VIOSOCK_WSK_MEMORY_TAG);
if (!AddrInfo)
{
Status = STATUS_INSUFFICIENT_RESOURCES;
Expand Down

0 comments on commit 6044592

Please sign in to comment.