Merge ee1e4d33f8f01f8a53be3a726f922ad5eb6195aa into d1a9bcc4fb5a7c4f65e96de0f0561af507f627b2

This commit is contained in:
HiGarfield 2023-10-08 11:39:27 +08:00 committed by GitHub
commit 49a19a8e06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1714,7 +1714,8 @@ int send_raw_tcp(raw_info_t &raw_info, const char *payload, int payloadlen) { /
char *tcp_data = send_raw_tcp_buf + +tcph->doff * 4;
memcpy(tcp_data, payload, payloadlen);
if (payload)
memcpy(tcp_data, payload, payloadlen);
int tcp_totlen = tcph->doff * 4 + payloadlen;
if (raw_ip_version == AF_INET) {