Fix HelloRetryRequest

In TLSv1.3, if a HelloRetryRequest needs to be sent and the call to tls_sockets() includes additional request extensions (other than key_share or cookie), then resend_if_hello_retry_request() adds an extra comma between extensions in the value sent to socksend_tls_clienthello(), which creates errors. This commit fixes the problem by removing the extra comma.
This commit is contained in:
David Cooper 2018-01-26 16:49:08 -05:00 committed by GitHub
parent c1d75f65ce
commit f8df2432ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -11172,7 +11172,7 @@ resend_if_hello_retry_request() {
part2=$j+3 part2=$j+3
len_extn=3*$(hex2dec "${extra_extensions:j:2}${extra_extensions:part2:2}") len_extn=3*$(hex2dec "${extra_extensions:j:2}${extra_extensions:part2:2}")
if [[ "$extn_type" != "00$KEY_SHARE_EXTN_NR" ]] && [[ "$extn_type" != "002c" ]]; then if [[ "$extn_type" != "00$KEY_SHARE_EXTN_NR" ]] && [[ "$extn_type" != "002c" ]]; then
j=12+$len_extn j=11+$len_extn
new_extra_extns+=",${extra_extensions:i:j}" new_extra_extns+=",${extra_extensions:i:j}"
fi fi
done done