summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2019-02-07 16:28:52 +0100
committerDaiki Ueno <dueno@redhat.com>2019-02-14 13:23:09 +0100
commitd9371ea986617da6960403c26326b0a9e8aeea68 (patch)
tree183e78f1050e68ef4e77a40b5cdc27487e0868ac
parentb31d9bb7c6a469b7d3599db9eefa4153f02e68f0 (diff)
downloadgnutls-d9371ea986617da6960403c26326b0a9e8aeea68.tar.gz
_gnutls_hello_ext_is_present: don't ignore max_fragment_length
The extension is assigned the internal ID 0. Signed-off-by: Daiki Ueno <dueno@redhat.com>
-rw-r--r--lib/hello_ext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hello_ext.h b/lib/hello_ext.h
index 1ad16e19d7..55bdbe86d3 100644
--- a/lib/hello_ext.h
+++ b/lib/hello_ext.h
@@ -159,7 +159,7 @@ typedef struct hello_ext_entry_st {
inline static unsigned
_gnutls_hello_ext_is_present(gnutls_session_t session, extensions_t id)
{
- if (id != 0 && ((1 << id) & session->internals.used_exts))
+ if ((1 << id) & session->internals.used_exts)
return 1;
return 0;