From: Francois-Xavier Le Bail Date: Sun, 21 May 2023 15:13:40 +0000 (+0200) Subject: NFS: A pointer should not be compared to zero (improve code readability) X-Git-Tag: tcpdump-4.99.5~193 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/e736b63ee680f097e0f2273fbb6a2769912e0484?ds=inline NFS: A pointer should not be compared to zero (improve code readability) (cherry picked from commit 08fa170aab956ad81e19027c143697e900239818) --- diff --git a/print-nfs.c b/print-nfs.c index 9e5102ae..510ce968 100644 --- a/print-nfs.c +++ b/print-nfs.c @@ -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)