summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-06-18 21:37:08 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-06-18 21:37:08 +0000
commitd8b26f3d2761a0b4997713d12795e842a2a1c2ea (patch)
tree5b1650df3d9e430eba0ee2c1fd040b16a68de86e
parentf6cdaf7981a5424671c3d435ac6ca9455fd6e46e (diff)
- s_bsd.c:ssl_handshake(): shrink buffer size of md
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2288 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r--src/s_bsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s_bsd.c b/src/s_bsd.c
index 903741e..5b33efd 100644
--- a/src/s_bsd.c
+++ b/src/s_bsd.c
@@ -261,7 +261,7 @@ ssl_handshake(int fd, struct Client *client_p)
{
int res = SSL_get_verify_result(client_p->localClient->fd.ssl);
char buf[EVP_MAX_MD_SIZE * 2 + 1] = { '\0' };
- unsigned char md[EVP_MAX_MD_SIZE * 2 + 1] = { '\0' };
+ unsigned char md[EVP_MAX_MD_SIZE] = { '\0' };
if (res == X509_V_OK || res == X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN ||
res == X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE ||