Tries also to handle messagages with extra data.
FossilOrigin-Name: 9152a202bb9898b744737d1e40b1402d64f8a6c7f45990ae0815458757229706
This commit is contained in:
parent
c576a8d722
commit
6cab07c9c1
@ -58,8 +58,9 @@ static int cwrmsg_init_ctrlhdr(struct conn * conn, struct cwrmsg * cwrmsg, uint8
|
||||
return 0;
|
||||
}
|
||||
if (8+cwrmsg->msgelems_len < len){
|
||||
cw_dbg(DBG_CW_RFC,"Packet from from %s has %d bytes extra data, ignoring.",
|
||||
cw_dbg(DBG_CW_RFC,"Packet from from %s has %d bytes extra data.",
|
||||
sock_addr2str(&conn->addr),len-8-cwrmsg->msgelems_len);
|
||||
cwrmsg->msgelems_len=len-8;
|
||||
}
|
||||
|
||||
if (8+cwrmsg->msgelems_len > len){
|
||||
|
Loading…
Reference in New Issue
Block a user