[NETFILTER]: nf_conntrack: make print_conntrack function optional for l4protos
[linux-2.6.git] / net / ipv4 / netfilter / nf_conntrack_l3proto_ipv4_compat.c
index acde995..543c02b 100644 (file)
@@ -121,7 +121,7 @@ static int ct_seq_show(struct seq_file *s, void *v)
                      ? (long)(ct->timeout.expires - jiffies)/HZ : 0) != 0)
                return -ENOSPC;
 
-       if (l4proto->print_conntrack(s, ct))
+       if (l4proto->print_conntrack && l4proto->print_conntrack(s, ct))
                return -ENOSPC;
 
        if (print_tuple(s, &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple,