mirror of
https://github.com/moonlight-stream/Internet-Hosting-Tool.git
synced 2025-07-04 00:35:26 +00:00
Add missing check for PCP version
This commit is contained in:
parent
f3a06e5379
commit
e7f03cfa93
@ -244,6 +244,10 @@ bool PCPMapPort(PSOCKADDR_STORAGE localAddr, int localAddrLen, PSOCKADDR_STORAGE
|
|||||||
printf("PCP message truncated: %d\n", bytesRead);
|
printf("PCP message truncated: %d\n", bytesRead);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
else if (resp.hdr.hdr.version != PCP_VERSION) {
|
||||||
|
printf("PCP version mismatch: %x\n", resp.hdr.hdr.version);
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
else if (resp.hdr.hdr.opcode != OPCODE_MAP_RESPONSE) {
|
else if (resp.hdr.hdr.opcode != OPCODE_MAP_RESPONSE) {
|
||||||
printf("PCP message type mismatch: %x\n", resp.hdr.hdr.opcode);
|
printf("PCP message type mismatch: %x\n", resp.hdr.hdr.opcode);
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user