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