mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39: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
|
||||
ret -= 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
// L2TPv3
|
||||
ret -= 2;
|
||||
}
|
||||
// EtherIP, L2TPv3
|
||||
ret -= 2;
|
||||
|
||||
// Ethernet
|
||||
ret -= 14;
|
||||
|
Loading…
Reference in New Issue
Block a user