Correctly set host number to zero when computing traffic selector range

This commit is contained in:
Eric Mertens
2009-11-23 10:34:30 +01:00
committed by Martin Willi
parent dd326c114f
commit ad78bb13c8
+1
View File
@@ -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;
}
}