]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Readd lost fix from Nikos.
authorSimon Josefsson <simon@josefsson.org>
Sat, 22 May 2010 20:17:51 +0000 (22:17 +0200)
committerSimon Josefsson <simon@josefsson.org>
Sat, 22 May 2010 20:17:51 +0000 (22:17 +0200)
lib/ext_safe_renegotiation.c

index 6d93bd11146f083e6818aeff26a87d23396754e3..1ee88ef20b8cb8d7c9990512e3dd57f258384335 100644 (file)
@@ -37,6 +37,12 @@ _gnutls_safe_renegotiation_recv_params (gnutls_session_t session,
 
   DECR_LEN (data_size, len + 1 /* count the first byte and payload */ );
 
+  if (session->internals.priorities.disable_safe_renegotiation != 0)
+    {
+      gnutls_assert ();
+      return 0;
+    }
+
   /* It is not legal to receive this extension on a renegotiation and
    * not receive it on the initial negotiation.
    */