From 788443d3cf383aed29c51ada02a94ed8e62b78a8 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Mon, 4 Mar 2019 16:33:05 -0700 Subject: [PATCH] set initial buffer size --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index db1139751..2d2d11a69 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -32260,7 +32260,7 @@ void* wolfSSL_GetDhAgreeCtx(WOLFSSL* ssl) int wolfSSL_OBJ_txt2nid(const char* s) { int ret; - unsigned int outSz = 0; + unsigned int outSz = MAX_OID_SZ; unsigned char out[MAX_OID_SZ]; WOLFSSL_ENTER("OBJ_txt2nid");