Correctly set host number to zero when computing traffic selector range
This commit is contained in:
committed by
Martin Willi
parent
dd326c114f
commit
ad78bb13c8
@@ -119,6 +119,7 @@ static void calc_range(private_traffic_selector_t *this, u_int8_t netbits)
|
||||
mask--;
|
||||
}
|
||||
}
|
||||
this->from[byte] &= ~mask;
|
||||
this->to[byte] = this->from[byte] | mask;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user