tls1_process_heartbeat: check for NULL after allocating buffer