If we see a bad NIC supplementary bits combination, return RC_UNKNOWN

This commit is contained in:
Oliver Jowett 2018-05-09 14:57:29 +01:00
parent 0b9f7e4cef
commit d5eccc30a4

View file

@ -733,7 +733,7 @@ static unsigned compute_rc(unsigned metype, unsigned version, unsigned nic_a, un
} else if (nic_a && nic_b) { } else if (nic_a && nic_b) {
return 1112; // 1111.2m, 0.6NM return 1112; // 1111.2m, 0.6NM
} else { } else {
return 1112; // bad combination, assume worst Rc return RC_UNKNOWN; // bad combination
} }
} else if (version == 1) { } else if (version == 1) {
if (nic_a) { if (nic_a) {