mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-09 23:26:29 -04:00
Merge pull request #8931 from waleed-elmelegy-arm/fix-alpn-nego-bug
Backport 2.28: Fix bug in ALPN loading from serialised session
This commit is contained in:
commit
a8215a604f
3
ChangeLog.d/fix-alpn-negotiating-bug.txt
Normal file
3
ChangeLog.d/fix-alpn-negotiating-bug.txt
Normal file
@ -0,0 +1,3 @@
|
||||
Bugfix
|
||||
* Fix the restoration of the ALPN when loading serialized connection with
|
||||
* the mbedtls_ssl_context_load() API.
|
@ -6680,7 +6680,7 @@ static int ssl_context_load(mbedtls_ssl_context *ssl,
|
||||
/* alpn_chosen should point to an item in the configured list */
|
||||
for (cur = ssl->conf->alpn_list; *cur != NULL; cur++) {
|
||||
if (strlen(*cur) == alpn_len &&
|
||||
memcmp(p, cur, alpn_len) == 0) {
|
||||
memcmp(p, *cur, alpn_len) == 0) {
|
||||
ssl->alpn_chosen = *cur;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user