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