Store the bytes needed for the HMAC calculation before the buffer resizing. Otherwise it may result in invalid memory read because buf may point to freed/invalid memory address if the original buffer was moved from realloc to another address.
Store the bytes needed for the HMAC calculation before the buffer resizing.
Otherwise it may result in invalid memory read because buf may point to freed/invalid memory address
if the original buffer was moved from realloc to another address.

igrr/axtls-8266,igrr/axtls-8266,igrr/axtls-8266,igrr/axtls-8266,igrr/axtls-8266,igrr/axtls-8266