Code style: space after 'if'
Reviewed-by: Matt Caswell <gitlab@openssl.org>
This commit is contained in:
@@ -1540,7 +1540,7 @@ int dtls1_process_heartbeat(SSL *s)
|
||||
memcpy(bp, pl, payload);
|
||||
bp += payload;
|
||||
/* Random padding */
|
||||
if(RAND_pseudo_bytes(bp, padding) < 0) {
|
||||
if (RAND_pseudo_bytes(bp, padding) < 0) {
|
||||
OPENSSL_free(buffer);
|
||||
return -1;
|
||||
}
|
||||
@@ -1625,11 +1625,11 @@ int dtls1_heartbeat(SSL *s)
|
||||
/* Sequence number */
|
||||
s2n(s->tlsext_hb_seq, p);
|
||||
/* 16 random bytes */
|
||||
if(RAND_pseudo_bytes(p, 16) < 0)
|
||||
if (RAND_pseudo_bytes(p, 16) < 0)
|
||||
goto err;
|
||||
p += 16;
|
||||
/* Random padding */
|
||||
if(RAND_pseudo_bytes(p, padding) < 0)
|
||||
if (RAND_pseudo_bytes(p, padding) < 0)
|
||||
goto err;
|
||||
|
||||
ret = dtls1_write_bytes(s, TLS1_RT_HEARTBEAT, buf, 3 + payload + padding);
|
||||
|
Reference in New Issue
Block a user