Skip to content

Commit

Permalink
fixup! Fix SSL_select_next_proto
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcaswell committed Jun 24, 2024
1 parent db20f79 commit 4db6706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssl/ssl_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -3550,7 +3550,7 @@ int SSL_select_next_proto(unsigned char **out, unsigned char *outlen,
* a match.
*/
*out = (unsigned char *)PACKET_data(&csubpkt);
*outlen = PACKET_remaining(&csubpkt);
*outlen = (unsigned char)PACKET_remaining(&csubpkt);

/*
* For each protocol in server preference order, see if we support it.
Expand All @@ -3565,7 +3565,7 @@ int SSL_select_next_proto(unsigned char **out, unsigned char *outlen,
PACKET_remaining(&ssubpkt))) {
/* We found a match */
*out = (unsigned char *)PACKET_data(&ssubpkt);
*outlen = PACKET_remaining(&ssubpkt);
*outlen = (unsigned char)PACKET_remaining(&ssubpkt);
return OPENSSL_NPN_NEGOTIATED;
}
}
Expand Down

0 comments on commit 4db6706

Please sign in to comment.