aa64c4
diff -up openssl-0.9.8b/ssl/ssltest.c.use-localhost openssl-0.9.8b/ssl/ssltest.c
aa64c4
--- openssl-0.9.8b/ssl/ssltest.c.use-localhost	2006-02-24 18:58:35.000000000 +0100
aa64c4
+++ openssl-0.9.8b/ssl/ssltest.c	2007-08-03 14:06:16.000000000 +0200
aa64c4
@@ -839,19 +839,8 @@ bad:
aa64c4
 #ifndef OPENSSL_NO_KRB5
aa64c4
 	if (c_ssl  &&  c_ssl->kssl_ctx)
aa64c4
                 {
aa64c4
-                char	localhost[MAXHOSTNAMELEN+2];
aa64c4
-
aa64c4
-		if (gethostname(localhost, sizeof localhost-1) == 0)
aa64c4
-                        {
aa64c4
-			localhost[sizeof localhost-1]='\0';
aa64c4
-			if(strlen(localhost) == sizeof localhost-1)
aa64c4
-				{
aa64c4
-				BIO_printf(bio_err,"localhost name too long\n");
aa64c4
-				goto end;
aa64c4
-				}
aa64c4
 			kssl_ctx_setstring(c_ssl->kssl_ctx, KSSL_SERVER,
aa64c4
-                                localhost);
aa64c4
-			}
aa64c4
+                                "localhost");
aa64c4
 		}
aa64c4
 #endif    /* OPENSSL_NO_KRB5  */
aa64c4