openbsd-ports/audio/ncmpc/patches/patch-src_libmpdclient_c
jasper 7c470cb5a8 - use libtool
- fix a bug in libmpdclient where it doesn't break to use a valid
  address from getaddrinfo, so it always uses the last one. which
  can be an ipv6 address, and that fails when mpd is only bound
  to localhost

From Nicholas Marriott <nicm__ at ntlworld.com>
via Tobias Ulmer <tobiasu@tmux.org> (MAINTAINER)
2007-10-31 06:34:55 +00:00

14 lines
341 B
Plaintext

$OpenBSD: patch-src_libmpdclient_c,v 1.1 2007/10/31 06:34:55 jasper Exp $
--- src/libmpdclient.c.orig Wed Sep 19 18:27:39 2007
+++ src/libmpdclient.c Thu Oct 25 13:04:31 2007
@@ -197,6 +197,9 @@ mpd_Connection * mpd_newConnection(const char * host,
connection->sock = 0;
continue;
}
+
+ /* success! */
+ break;
}
}