From b9527600f4178101c7814c14c09d0fe0b72f5b1a Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Mon, 14 Sep 2020 09:22:47 +0200 Subject: [PATCH] Return size of consumed buffer --- src/internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index 74974966f..fa4d5d57d 100644 --- a/src/internal.c +++ b/src/internal.c @@ -1413,7 +1413,7 @@ int wolfSSL_dtls_import_state_internal(WOLFSSL* ssl, const byte* buf, word32 sz) idx += ret; WOLFSSL_LEAVE("wolfSSL_dtls_import_state_internal", ret); - return ret; + return idx; }