netfilter: nfnetlink_osf: fix using plain integer as NULL warning
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 8 Aug 2018 03:23:44 +0000 (03:23 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 8 Aug 2018 17:05:39 +0000 (19:05 +0200)
Fixes the following sparse warning:

net/netfilter/nfnetlink_osf.c:274:24: warning:
 Using plain integer as NULL pointer

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_osf.c

index f9dba62c450f11a93cbda8aa7998c8f505b2da76..00db27dfd2ff72a9f6bf67354168711e40575fe0 100644 (file)
@@ -271,7 +271,7 @@ const char *nf_osf_find(const struct sk_buff *skb,
 
        tcp = nf_osf_hdr_ctx_init(&ctx, skb, ip, opts);
        if (!tcp)
-               return false;
+               return NULL;
 
        list_for_each_entry_rcu(kf, &nf_osf_fingers[ctx.df], finger_entry) {
                f = &kf->finger;