Address style feedback comments
authorMatt Caswell <matt@openssl.org>
Thu, 29 Sep 2016 13:39:47 +0000 (14:39 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 29 Sep 2016 14:09:02 +0000 (15:09 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/packet.c
ssl/statem/statem_srvr.c

index 7c240a4a82b8cfaca096645805ea0aeaace6f8da..2a8fe2541c88b5fc67c420890872b684e7a819b3 100644 (file)
@@ -16,9 +16,9 @@ int WPACKET_allocate_bytes(WPACKET *pkt, size_t len, unsigned char **allocbytes)
 {
     if (!WPACKET_reserve_bytes(pkt, len, allocbytes))
         return 0;
+
     pkt->written += len;
     pkt->curr += len;
-
     return 1;
 }
 
index 7a14c4487d0de436ce9af5fd4d1a5527d9a42c99..3c3544ce2358b84114e2d3648de4403f96f30ff6 100644 (file)
@@ -1813,6 +1813,7 @@ int tls_construct_server_key_exchange(SSL *s)
          */
         if ((i == 2) && (type & (SSL_kDHE | SSL_kDHEPSK))) {
             size_t len = BN_num_bytes(r[0]) - BN_num_bytes(r[2]);
+
             if (len > 0) {
                 if (!WPACKET_allocate_bytes(&pkt, len, &binval)) {
                     SSLerr(SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE,