- Fix --with-ipaddr-display option test. Fix from Jarno Huuskonen
   <jhuuskon@hytti.uku.fi>
diff --git a/CREDITS b/CREDITS
index f101256..b40e75d 100644
--- a/CREDITS
+++ b/CREDITS
@@ -16,6 +16,7 @@
 Gary E. Miller <gem@rellim.com> - SCO support
 Holger Trapp <Holger.Trapp@Informatik.TU-Chemnitz.DE> - KRB4/AFS config patch
 Jani Hakala <jahakala@cc.jyu.fi> - Patches
+Jarno Huuskonen <jhuuskon@hytti.uku.fi> - Bugfixes
 Jim Knoble <jmknoble@pobox.com> - Many patches
 jonchen (email unknown) - the original author of PAM support of SSH
 Juergen Keil <jk@tools.de> - scp bugfixing
diff --git a/ChangeLog b/ChangeLog
index 5ea5c01..8c182d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,8 @@
  - Released 1.2.1pre27
 
  - Fix rresvport_af failure errors (logic error in bsd-bindresvport.c)
+ - Fix --with-ipaddr-display option test. Fix from Jarno Huuskonen 
+   <jhuuskon@hytti.uku.fi>
 
 20000116
  - Renamed --with-xauth-path to --with-xauth
diff --git a/configure.in b/configure.in
index 7b8b46b..7c0b149 100644
--- a/configure.in
+++ b/configure.in
@@ -636,7 +636,7 @@
 AC_ARG_WITH(ipaddr-display,
 	[  --with-ipaddr-display   Use ip address instead of hostname in \$DISPLAY],
 	[
-		if test "x$withval" = "xno" ; then	
+		if test "x$withval" != "xno" ; then	
 			AC_DEFINE(IPADDR_IN_DISPLAY)
 		fi
 	]