NF_FLOW_DISSECTOR(match, FLOW_DISSECTOR_KEY_TCP, tcp);
        NF_FLOW_DISSECTOR(match, FLOW_DISSECTOR_KEY_PORTS, tp);
 
-       if (other_dst->lwtstate) {
+       if (other_dst && other_dst->lwtstate) {
                tun_info = lwt_tun_info(other_dst->lwtstate);
                nf_flow_rule_lwt_match(match, tun_info);
        }
        struct dst_entry *dst;
 
        dst = flow->tuplehash[dir].tuple.dst_cache;
-       if (dst->lwtstate) {
+       if (dst && dst->lwtstate) {
                struct ip_tunnel_info *tun_info;
 
                tun_info = lwt_tun_info(dst->lwtstate);
        struct dst_entry *dst;
 
        dst = flow->tuplehash[!dir].tuple.dst_cache;
-       if (dst->lwtstate) {
+       if (dst && dst->lwtstate) {
                struct ip_tunnel_info *tun_info;
 
                tun_info = lwt_tun_info(dst->lwtstate);