lte678 / fmerge_cpp

Two-way remote file sync and conflict resolution application
GNU General Public License v3.0
0 stars 0 forks source link

Crash when connecting to peer #15

Open lte678 opened 9 months ago

lte678 commented 9 months ago

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_delete >)>) (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.