malloc for payload in recv_ts.c