diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-07-09 08:39:51 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-07-09 08:39:55 +0200 |
commit | 48765ad8252e29371e4b3d2be97f2987e106dcc8 (patch) | |
tree | 9d09ce34cf0cb4544620adb37398dcd643157a15 /lib | |
parent | c919834a88c90ae40b9c40dcbfe7225963fe8c54 (diff) | |
download | gnutls-48765ad8252e29371e4b3d2be97f2987e106dcc8.tar.gz |
Include MKI size in size calculations for the extension.
This prevents a parsing error when MKI is being used.
Reported by Gábor Tatárka.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ext/srtp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ext/srtp.c b/lib/ext/srtp.c index d29b543458..dbc71d9672 100644 --- a/lib/ext/srtp.c +++ b/lib/ext/srtp.c @@ -294,8 +294,9 @@ _gnutls_srtp_send_params (gnutls_session_t session, ret = _gnutls_buffer_append_data_prefix(extdata, 8, priv->mki, priv->mki_size); if (ret < 0) return gnutls_assert_val(ret); + total_size += 1 + priv_mki_size; - return total_size + 1; + return total_size; } /** |