From 1fe1f869d835fb843a3043dfb415dc4251b1a5e9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 5 Dec 2009 20:09:10 +0000 Subject: check this too --- src/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 index bdcf9ec0..84ed374f 100644 --- 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; -- cgit v1.2.3