]> The Tcpdump Group git mirrors - tcpdump/commitdiff
NFS: A pointer should not be compared to zero (improve code readability)
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 21 May 2023 15:13:40 +0000 (17:13 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 12 Oct 2023 13:01:11 +0000 (15:01 +0200)
(cherry picked from commit 08fa170aab956ad81e19027c143697e900239818)

print-nfs.c

index 9e5102aefc70510d4d81151b3bfc2d96bb7e692b..510ce968db164e65250eb3eafe560a3ef7ac46c7 100644 (file)
@@ -1558,7 +1558,7 @@ interp_reply(netdissect_options *ndo,
                if (dp == NULL)
                        goto trunc;
                if (v3) {
-                       if (parsewccres(ndo, dp, ndo->ndo_vflag, &nfserr) == 0)
+                       if (parsewccres(ndo, dp, ndo->ndo_vflag, &nfserr) == NULL)
                                goto trunc;
                } else {
                        if (parseattrstat(ndo, dp, !ndo->ndo_qflag, 0, &nfserr) == 0)