libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 1fe1f869d835fb843a3043dfb415dc4251b1a5e9
parent 730f6628888a36b89f7975e99709b4e79a5ebc32
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat,  5 Dec 2009 20:09:10 +0000

check this too

Diffstat:
Msrc/testcurl/https/tls_extension_test.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/testcurl/https/tls_extension_test.c b/src/testcurl/https/tls_extension_test.c @@ -118,7 +118,7 @@ test_hello_extension (MHD_gtls_session_t session, extensions_t exten_t, /* generate session client random */ memset (session->security_parameters.client_random, 0, TLS_RANDOM_SIZE); MHD_gtls_write_uint32 (time (NULL), rnd); - MHD_gc_nonce ((char *) &rnd[4], TLS_RANDOM_SIZE - 4); + if (GC_OK != MHD_gc_nonce ((char *) &rnd[4], TLS_RANDOM_SIZE - 4)) abort (); memcpy (session->security_parameters.client_random, rnd, TLS_RANDOM_SIZE); memcpy (&data[pos], rnd, TLS_RANDOM_SIZE); pos += TLS_RANDOM_SIZE;