Explorar el Código

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

Marco Oliverio hace 1 mes
padre
commit
b0c991eeb2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;