proto_trxd.c: Use bit-wise AND, not boolean AND

Change-Id: I974c91be7cc119b44c2fb0c53d08009c87de7bf1
Related: CID#202038
This commit is contained in:
Harald Welte
2019-07-20 10:13:18 +02:00
parent 758381bad4
commit a7ba484fb2

View File

@@ -27,7 +27,7 @@
static void trxd_fill_common(struct trxd_hdr_common *common, const struct trx_ul_burst_ind *bi, uint8_t version)
{
common->version = version && 0x07;
common->version = version & 0x07;
common->reserved = 0;
common->tn = bi->tn;
osmo_store32be(bi->fn, &common->fn);