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: 630: freeaddrinfo fails when first getaddrinfo result does not result in connection establishment #40

Description

@janknepper

In function __apn_connect in apn.c a while loop is used to traverse through all the results getaddrinfo returns. However, 'addrinfo' is used as iterator. If more than just the first element is traversed before a connection is established, freeaddinfo just past the loop will try to 'free' the wrong list as 'addrinfo' has changed value and might effectively be NULL.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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