Skip to content

Crash when connecting to peer #15

@lte678

Description

@lte678

Segfault at:
#0 fmerge::connect_to_server(int, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::function<void (std::unique_ptr<fmerge::Connection, std::default_deletefmerge::Connection >)>) (port=4512, server_addr=..., conn_handler=...) at /home/leon/Projects/FileMerge/fmerge_cpp/src/Connection.cpp:256
256 char ip = inet_ntoa(((struct sockaddr_in)result->ai_addr)->sin_addr);

The issue occurs when the provided hostname is incorrect.

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