mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-10-22 01:51:20 +03:00
src/Cedar/IPsec_EtherIP: resolve "Identical code for different branches"
found by coverity
This commit is contained in:
1 parent
2c2caa81bc
commit
9675b0eb6d
1 file changed
+2
-10
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user