commit 89dc7592eea3f7b2804c2ec09f58c877ad096fef Author: Oswald Buddenhagen <o...@users.sf.net> Date: Sun Sep 27 12:13:34 2015 +0200
don't crash when dns lookup fails (ipv6 path) we call socket_connect_bail() when getaddrinfo() failed, so it must deal with no addrinfo being there yet. src/socket.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/socket.c b/src/socket.c index 5c1ce93..9fd6eca 100644 --- a/src/socket.c +++ b/src/socket.c @@ -520,7 +520,10 @@ static void socket_connect_bail( conn_t *conn ) { #ifdef HAVE_IPV6 - freeaddrinfo( conn->addrs ); + if (conn->addrs) { + freeaddrinfo( conn->addrs ); + conn->addrs = 0; + } #endif free( conn->name ); conn->name = 0; ------------------------------------------------------------------------------ _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel