diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2023-05-21 17:13:40 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2023-05-21 17:13:47 +0200 |
commit | 08fa170aab956ad81e19027c143697e900239818 (patch) | |
tree | 8e4784757e4140d5795ae947d1770759c87d0d0f /print-nfs.c | |
parent | f4a7688fecc925c11e9c3cb0df5514dda72a252e (diff) | |
download | tcpdump-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.c | 2 |
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) |