mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
src/Cedar/IPsec_EtherIP: resolve "Identical code for different branches"
found by coverity
This commit is contained in:
parent
2c2caa81bc
commit
9675b0eb6d
@ -541,16 +541,8 @@ UINT CalcEtherIPTcpMss(ETHERIP_SERVER *s)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s->L2TPv3 == false)
|
// EtherIP, L2TPv3
|
||||||
{
|
|
||||||
// EtherIP
|
|
||||||
ret -= 2;
|
ret -= 2;
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// L2TPv3
|
|
||||||
ret -= 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ethernet
|
// Ethernet
|
||||||
ret -= 14;
|
ret -= 14;
|
||||||
|
Loading…
Reference in New Issue
Block a user