diff -rup gtk-vnc-0.3.8.orig/src/gvnc.c gtk-vnc-0.3.8.new/src/gvnc.c --- gtk-vnc-0.3.8.orig/src/gvnc.c 2009-03-05 15:35:33.000000000 +0000 +++ gtk-vnc-0.3.8.new/src/gvnc.c 2009-03-05 15:57:58.000000000 +0000 @@ -2579,7 +2579,9 @@ static gboolean gvnc_perform_auth_sasl(s errno, strerror(errno)); goto error; } - if ((localAddr = gvnc_addr_to_string(&sa, salen)) == NULL) + if ((sa.ss_family == AF_INET || + sa.ss_family == AF_INET6) && + (localAddr = gvnc_addr_to_string(&sa, salen)) == NULL) goto error; /* Get remote address in form IPADDR:PORT */ @@ -2590,7 +2592,9 @@ static gboolean gvnc_perform_auth_sasl(s g_free(localAddr); goto error; } - if ((remoteAddr = gvnc_addr_to_string(&sa, salen)) == NULL) { + if ((sa.ss_family == AF_INET || + sa.ss_family == AF_INET6) && + (remoteAddr = gvnc_addr_to_string(&sa, salen)) == NULL) { g_free(localAddr); goto error; }