diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-02-18 23:59:36 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-02-18 23:59:36 +0100 |
commit | 258d52ffb0112f457fa2503493b9f353d08bdf24 (patch) | |
tree | e5351adf2e783ac727c136a67f7cc9aa250e561b /lib/gnutls_mbuffers.h | |
parent | 09e0737359ca51974b427ad12bb5bec4ed031e8b (diff) | |
download | gnutls-258d52ffb0112f457fa2503493b9f353d08bdf24.tar.gz |
Several updates for DTLS (client side only) to work.
Diffstat (limited to 'lib/gnutls_mbuffers.h')
-rw-r--r-- | lib/gnutls_mbuffers.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gnutls_mbuffers.h b/lib/gnutls_mbuffers.h index 6b3f424859..571e46729e 100644 --- a/lib/gnutls_mbuffers.h +++ b/lib/gnutls_mbuffers.h @@ -95,13 +95,13 @@ _mbuffer_set_uhead_size (mbuffer_st * bufel, size_t size) inline static mbuffer_st * _gnutls_handshake_alloc (gnutls_session_t session, size_t size, size_t maximum) { - mbuffer_st *ret = _mbuffer_alloc (HANDSHAKE_HEADER_SIZE + size, - HANDSHAKE_HEADER_SIZE + maximum); + mbuffer_st *ret = _mbuffer_alloc (HANDSHAKE_HEADER_SIZE(session) + size, + HANDSHAKE_HEADER_SIZE(session) + maximum); if (!ret) return NULL; - _mbuffer_set_uhead_size (ret, HANDSHAKE_HEADER_SIZE); + _mbuffer_set_uhead_size (ret, HANDSHAKE_HEADER_SIZE(session)); return ret; } |