From: Nikos Mavrogiannopoulos Date: Fri, 26 Jul 2013 18:10:55 +0000 (+0200) Subject: simplified decrypted data allocation. X-Git-Tag: gnutls_3_2_3pre0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1667d2eecd4094a239db9f5ae54990d4c270c52a;p=thirdparty%2Fgnutls.git simplified decrypted data allocation. --- diff --git a/lib/gnutls_record.c b/lib/gnutls_record.c index cc0d5f7ca5..ffe5f4681a 100644 --- a/lib/gnutls_record.c +++ b/lib/gnutls_record.c @@ -1181,8 +1181,7 @@ begin: /* We allocate the maximum possible to allow few compressed bytes to expand to a * full record. */ - t.size = get_max_decrypted_data(session); - decrypted = _mbuffer_alloc(t.size, t.size); + decrypted = _mbuffer_alloc(record.length, record.length); if (decrypted == NULL) return gnutls_assert_val(GNUTLS_E_MEMORY_ERROR);