in static void ReleaseClient(CLIENT *pClient) in TFTPServer/main.cpp,
the line:
memset(pClient,0x00,sizeof(pClient));
should be:
memset(pClient, 0x00, sizeof(CLIENT));
so the entire structure memory gets zeroed, not just a pointer-size's worth.
This might also be an issue in other places where memset() is used.
in static void ReleaseClient(CLIENT *pClient) in TFTPServer/main.cpp,
the line:
memset(pClient,0x00,sizeof(pClient));
should be:
memset(pClient, 0x00, sizeof(CLIENT));
so the entire structure memory gets zeroed, not just a pointer-size's worth.
This might also be an issue in other places where memset() is used.