Blame SOURCES/openssl-1.0.2o-test-use-localhost.patch

557317
diff -up openssl-1.0.2o/ssl/ssltest.c.use-localhost openssl-1.0.2o/ssl/ssltest.c
557317
--- openssl-1.0.2o/ssl/ssltest.c.use-localhost	2018-04-05 16:09:54.338118770 +0200
557317
+++ openssl-1.0.2o/ssl/ssltest.c	2018-04-05 16:11:36.201476198 +0200
557317
@@ -1859,16 +1859,7 @@ int main(int argc, char *argv[])
557317
 
557317
 #ifndef OPENSSL_NO_KRB5
557317
     if (c_ssl && c_ssl->kssl_ctx) {
557317
-        char localhost[MAXHOSTNAMELEN + 2];
557317
-
557317
-        if (gethostname(localhost, sizeof(localhost) - 1) == 0) {
557317
-            localhost[sizeof(localhost) - 1] = '\0';
557317
-            if (strlen(localhost) == sizeof(localhost) - 1) {
557317
-                BIO_printf(bio_err, "localhost name too long\n");
557317
-                goto end;
557317
-            }
557317
-            kssl_ctx_setstring(c_ssl->kssl_ctx, KSSL_SERVER, localhost);
557317
-        }
557317
+        kssl_ctx_setstring(c_ssl->kssl_ctx, KSSL_SERVER, "localhost");
557317
     }
557317
 #endif                          /* OPENSSL_NO_KRB5 */
557317