Browse Source

tls13: update error code to NO_CERT_ERROR when no cert is set

Marco Oliverio 2 weeks ago
parent
commit
b0c991eeb2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/tls13.c

+ 1 - 1
src/tls13.c

@@ -8504,7 +8504,7 @@ static int SendTls13Certificate(WOLFSSL* ssl)
     else {
         if (!ssl->buffers.certificate) {
             WOLFSSL_MSG("Send Cert missing certificate buffer");
-            return BUFFER_ERROR;
+            return NO_CERT_ERROR;
         }
         /* Certificate Data */
         certSz = ssl->buffers.certificate->length;