summaryrefslogtreecommitdiff
path: root/lib/gnutls_handshake.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gnutls_handshake.c')
-rw-r--r--lib/gnutls_handshake.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gnutls_handshake.c b/lib/gnutls_handshake.c
index 5dcc83dbf6..aaa053e806 100644
--- a/lib/gnutls_handshake.c
+++ b/lib/gnutls_handshake.c
@@ -1511,7 +1511,7 @@ static int _gnutls_send_client_hello(gnutls_session session, int again)
extdatalen = _gnutls_copy_ciphersuites(session, &extdata);
if (extdatalen > 0) {
datalen += extdatalen;
- data = gnutls_realloc(data, datalen);
+ data = gnutls_realloc_fast(data, datalen);
if (data == NULL) {
gnutls_assert();
gnutls_free(extdata);
@@ -1536,7 +1536,7 @@ static int _gnutls_send_client_hello(gnutls_session session, int again)
extdatalen = _gnutls_copy_comp_methods(session, &extdata);
if (extdatalen > 0) {
datalen += extdatalen;
- data = gnutls_realloc(data, datalen);
+ data = gnutls_realloc_fast(data, datalen);
if (data == NULL) {
gnutls_assert();
gnutls_free(extdata);
@@ -1561,7 +1561,7 @@ static int _gnutls_send_client_hello(gnutls_session session, int again)
extdatalen = _gnutls_gen_extensions(session, &extdata);
if (extdatalen > 0) {
datalen += extdatalen;
- data = gnutls_realloc(data, datalen);
+ data = gnutls_realloc_fast(data, datalen);
if (data == NULL) {
gnutls_assert();
gnutls_free(extdata);