From b3b0c8d1fccbf426ddd0f922d8cfbf61f1409ddd Mon Sep 17 00:00:00 2001 From: lchristina26 Date: Mon, 17 Nov 2014 11:10:23 -0700 Subject: [PATCH] Add braces around empty if statements --- src/ssl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 9a1138fa0..b27ac8e13 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -10889,16 +10889,17 @@ int CyaSSL_DH_generate_key(CYASSL_DH* dh) CyaSSL_BN_free(dh->pub_key); dh->pub_key = CyaSSL_BN_new(); - if (dh->pub_key == NULL) + if (dh->pub_key == NULL) { CYASSL_MSG("Bad DH new pub"); - + } if (dh->priv_key) CyaSSL_BN_free(dh->priv_key); dh->priv_key = CyaSSL_BN_new(); - if (dh->priv_key == NULL) + if (dh->priv_key == NULL) { CYASSL_MSG("Bad DH new priv"); + } if (dh->pub_key && dh->priv_key) { if (CyaSSL_BN_bin2bn(pub, pubSz, dh->pub_key) == NULL)