From: William A. Rowe Jr Date: Sat, 29 Dec 2001 05:02:10 +0000 (+0000) Subject: Close a real GP fault. This is the _wrong_solution_, but stops the X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3df11d39dd9554c10c3fee5e26ef508ea138fbe;p=thirdparty%2Fapache%2Fhttpd.git Close a real GP fault. This is the _wrong_solution_, but stops the segfaults against very odd RAND_seed errors given garbage in. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@92646 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/ssl_engine_rand.c b/ssl_engine_rand.c index 7b41ae0ef92..472a4be7c5b 100644 --- a/ssl_engine_rand.c +++ b/ssl_engine_rand.c @@ -149,14 +149,18 @@ int ssl_rand_seed(server_rec *s, apr_pool_t *p, ssl_rsctx_t nCtx, char *prefix) RAND_seed(stackdata+n, 128); nDone += 128; +#if XXX_SBENTROPY_SOLVED /* + * XXX: This is entirely borked, SCOREBOARD_SIZE < 1024 + * * seed in an 1KB extract of the current scoreboard */ if (ap_scoreboard_image != NULL) { n = ssl_rand_choosenum(0, SCOREBOARD_SIZE-1024-1); - RAND_seed((unsigned char *)ap_scoreboard_image+n, 1024); + RAND_seed(((unsigned char *)ap_scoreboard_image)+n, 1024); nDone += 1024; } +#endif } } }