Skip to content

ReleaseClient() incorrectly clearing memory #3

Description

@cjkgit

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions