aboutsummaryrefslogtreecommitdiff
path: root/print-nfs.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2023-05-21 17:13:40 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2023-05-21 17:13:47 +0200
commit08fa170aab956ad81e19027c143697e900239818 (patch)
tree8e4784757e4140d5795ae947d1770759c87d0d0f /print-nfs.c
parentf4a7688fecc925c11e9c3cb0df5514dda72a252e (diff)
downloadtcpdump-08fa170aab956ad81e19027c143697e900239818.tar.gz
NFS: A pointer should not be compared to zero (improve code readability)
Diffstat (limited to 'print-nfs.c')
-rw-r--r--print-nfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-nfs.c b/print-nfs.c
index 8bb4718e..4378121a 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)