Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

apn.c: 609: ioctlsocket ( cts->sock, ... ) #41

@janknepper

Description

@janknepper

It seem the 'ctx->sock = sock' assignment on line 644 of apn.c should move up to line 607 (before #ifdef _WIN32).
Right now fcntl/ioctlsocket is called on a -1. (condition of ctx->sock is checked earlier).
Also, in case a connection is never established, ( ! connected ), the socket is never closed as the 'ctx -> sock = sock' assignment will not be performed until past the 'if'statement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions