diff -Naur conky-1.8.2git20111107.orig/src/libmpdclient.c conky-1.8.2git20111107/src/libmpdclient.c
--- conky-1.8.2git20111107.orig/src/libmpdclient.c	2011-11-05 16:21:23.000000000 +0000
+++ conky-1.8.2git20111107/src/libmpdclient.c	2011-12-19 20:11:13.000000000 +0000
@@ -240,7 +240,7 @@
 		return uds_connect(connection, host, timeout);
 
 #ifdef HAVE_GETHOSTBYNAME_R
-		if (gethostbyname_r(rhost, &he, hostbuff, sizeof(hostbuff), &he_res, &he_errno)) {	// get the host info
+		if (gethostbyname_r(host, &he, hostbuff, sizeof(hostbuff), &he_res, &he_errno)) {	// get the host info
 		snprintf(connection->errorStr, MPD_ERRORSTR_MAX_LENGTH,
 			"%s ('%s')", hstrerror(h_errno), host);
 		connection->error = MPD_ERROR_UNKHOST;
