mirror of
https://abf.rosa.ru/djam/openssl.git
synced 2025-02-23 16:22:50 +00:00
22 lines
867 B
Diff
22 lines
867 B
Diff
![]() |
diff -urN openssl-1.0.1m/ssl/ssltest.c openssl-1.0.1m-patched/ssl/ssltest.c
|
||
|
--- openssl-1.0.1m/ssl/ssltest.c 2015-03-19 23:37:10.000000000 +1000
|
||
|
+++ openssl-1.0.1m-patched/ssl/ssltest.c 2015-04-05 22:44:58.660144549 +1000
|
||
|
@@ -1058,16 +1058,7 @@
|
||
|
|
||
|
#ifndef OPENSSL_NO_KRB5
|
||
|
if (c_ssl && c_ssl->kssl_ctx) {
|
||
|
- char localhost[MAXHOSTNAMELEN + 2];
|
||
|
-
|
||
|
- if (gethostname(localhost, sizeof localhost - 1) == 0) {
|
||
|
- localhost[sizeof localhost - 1] = '\0';
|
||
|
- if (strlen(localhost) == sizeof localhost - 1) {
|
||
|
- BIO_printf(bio_err, "localhost name too long\n");
|
||
|
- goto end;
|
||
|
- }
|
||
|
- kssl_ctx_setstring(c_ssl->kssl_ctx, KSSL_SERVER, localhost);
|
||
|
- }
|
||
|
+ kssl_ctx_setstring(c_ssl->kssl_ctx, KSSL_SERVER, "localhost");
|
||
|
}
|
||
|
#endif /* OPENSSL_NO_KRB5 */
|
||
|
|