diff options
Diffstat (limited to 'src/tcpopt.c')
-rw-r--r-- | src/tcpopt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tcpopt.c b/src/tcpopt.c index 6920ff94..ec305d94 100644 --- a/src/tcpopt.c +++ b/src/tcpopt.c @@ -218,9 +218,9 @@ void tcpopt_init_raw(struct expr *expr, uint8_t type, unsigned int offset, continue; if (flags & NFT_EXTHDR_F_PRESENT) - expr->dtype = &boolean_type; + datatype_set(expr, &boolean_type); else - expr->dtype = tmpl->dtype; + datatype_set(expr, tmpl->dtype); expr->exthdr.tmpl = tmpl; expr->exthdr.op = NFT_EXTHDR_OP_TCPOPT; break; |