Skip to content

Commit 6145f3a

Browse files
Fix incorrect alert being sent when wolfSSL receives unexpected PSK extension.
Fixes #9503.
1 parent a7b83b0 commit 6145f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11607,7 +11607,7 @@ static int TLSX_PreSharedKey_Parse(WOLFSSL* ssl, const byte* input,
1160711607
/* Find the list of identities sent to server. */
1160811608
extension = TLSX_Find(ssl->extensions, TLSX_PRE_SHARED_KEY);
1160911609
if (extension == NULL)
11610-
return PSK_KEY_ERROR;
11610+
return INCOMPLETE_DATA;
1161111611
list = (PreSharedKey*)extension->data;
1161211612

1161311613
/* Mark the identity as chosen. */

0 commit comments

Comments
 (0)