mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-11-30 10:57:34 +08:00
Merge pull request #90 from zhengshuxin/master
fixed vc warning about the utf-8 format with no BOM header.
This commit is contained in:
commit
8e951b957d
@ -238,7 +238,7 @@ size_t icmp_pkt_payload(const ICMP_PKT *pkt, char *buf, size_t size)
|
||||
if (dlen == 0 || size == 0)
|
||||
return 0;
|
||||
|
||||
/* 如果检测 code 值是私有值,则仅取除 git 外的数据 */
|
||||
/* 如果检测 code 值是私有值,则仅取除 git 外的数据 */
|
||||
if (pkt->hdr.code == ICMP_CODE_EXTRA) {
|
||||
if (dlen <= sizeof(pkt->body.gid))
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user