[IPHLPAPI] Reduce code duplication and use a single function for TCP and UDP enumerations
authorPierre Schweitzer <pierre@reactos.org>
Fri, 30 Nov 2018 18:42:38 +0000 (19:42 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Fri, 30 Nov 2018 19:06:29 +0000 (20:06 +0100)
commitbf052e120b3ad451b1b450cc7c1ebf12b1f57ffa
treecc1c69e67de3ae7e6fb3656f7de9336a75c70f65
parented7a78e97a79e083045909c4421bc5512f3d0062
[IPHLPAPI] Reduce code duplication and use a single function for TCP and UDP enumerations

Furthermore, memory was improperly allocated before (alignment issues) leading to heap
corruption under certain circumstances
dll/win32/iphlpapi/iphlpapi_main.c
dll/win32/iphlpapi/ipstats.h
dll/win32/iphlpapi/ipstats_reactos.c