Skip to content

Return code from sendto, etc handled incorrectly in websocket_to_posix_proxy #16897

Open
@glennra

Description

@glennra

The return code from sendto() and recvfrom() is the number of bytes sent or -1 for an error so the check for an error here should be ret<0, not ret!=0

errorCode = (ret != 0) ? GET_SOCKET_ERROR() : 0;

errorCode = (ret != 0) ? GET_SOCKET_ERROR() : 0;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions