]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - openssl/patches/openssl-0.9.8b-test-use-localhost.patch
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[people/amarx/ipfire-3.x.git] / openssl / patches / openssl-0.9.8b-test-use-localhost.patch
1 diff -up openssl-0.9.8b/ssl/ssltest.c.use-localhost openssl-0.9.8b/ssl/ssltest.c
2 --- openssl-0.9.8b/ssl/ssltest.c.use-localhost 2006-02-24 18:58:35.000000000 +0100
3 +++ openssl-0.9.8b/ssl/ssltest.c 2007-08-03 14:06:16.000000000 +0200
4 @@ -839,19 +839,8 @@ bad:
5 #ifndef OPENSSL_NO_KRB5
6 if (c_ssl && c_ssl->kssl_ctx)
7 {
8 - char localhost[MAXHOSTNAMELEN+2];
9 -
10 - if (gethostname(localhost, sizeof localhost-1) == 0)
11 - {
12 - localhost[sizeof localhost-1]='\0';
13 - if(strlen(localhost) == sizeof localhost-1)
14 - {
15 - BIO_printf(bio_err,"localhost name too long\n");
16 - goto end;
17 - }
18 kssl_ctx_setstring(c_ssl->kssl_ctx, KSSL_SERVER,
19 - localhost);
20 - }
21 + "localhost");
22 }
23 #endif /* OPENSSL_NO_KRB5 */
24