]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Parenthesize size calculations.
authorJonathan Bastien-Filiatrault <joe@x2a.org>
Wed, 8 Sep 2010 22:34:44 +0000 (18:34 -0400)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 9 Sep 2010 06:35:00 +0000 (08:35 +0200)
This is standard practice and the DTLS code got bit by this.

Signed-off-by: Jonathan Bastien-Filiatrault <joe@x2a.org>
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
lib/gnutls_int.h

index 2d3767896a00525c06d18759ec8e617e3b153358..4cdff88cdbb6c66805b55522279852e7b900ada3 100644 (file)
@@ -115,8 +115,8 @@ typedef struct
 #define MAX_RECORD_RECV_SIZE (size_t)session->security_parameters.max_record_recv_size
 #define MAX_PAD_SIZE 255
 #define EXTRA_COMP_SIZE 2048
-#define MAX_RECORD_OVERHEAD MAX_PAD_SIZE+EXTRA_COMP_SIZE
-#define MAX_RECV_SIZE MAX_RECORD_OVERHEAD+MAX_RECORD_RECV_SIZE+RECORD_HEADER_SIZE
+#define MAX_RECORD_OVERHEAD (MAX_PAD_SIZE+EXTRA_COMP_SIZE)
+#define MAX_RECV_SIZE (MAX_RECORD_OVERHEAD+MAX_RECORD_RECV_SIZE+RECORD_HEADER_SIZE)
 
 #define HANDSHAKE_HEADER_SIZE 4