diff --git a/src/kytunblock.c b/src/kytunblock.c index f2b0f5c..bbc9b3f 100644 --- a/src/kytunblock.c +++ b/src/kytunblock.c @@ -483,8 +483,8 @@ static NF_CALLBACK(ykb_nf_hook, skb) { uint8_t *data_buf = NULL; int nf_verdict = NF_ACCEPT; + kref_get(&cur_config->refcount); struct config_t *config = cur_config; - kref_get(&config->refcount); ++global_stats.all_packet_counter;