]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Fix dissection of NFSv3 WRITE and LINK replies.
authorGuy Harris <[email protected]>
Sun, 16 Sep 2018 15:33:38 +0000 (08:33 -0700)
committerGuy Harris <[email protected]>
Mon, 17 Sep 2018 16:46:45 +0000 (09:46 -0700)
Don't report them all as truncated if -v isn't specified.

(cherry picked from commit 596aca3d9384e739961df0b5c9ffd9d8161d6c9b)

print-nfs.c

index e752a59cf4b9122df2a84ff677a411c84464aa57..2118a963fb464fea2c271a28641e7c3e37ba6ad5 100644 (file)
@@ -1568,8 +1568,8 @@ interp_reply(netdissect_options *ndo,
                                                tok2str(nfsv3_writemodes,
                                                        NULL, EXTRACT_32BITS(&dp[1]))));
                                }
-                               return;
                        }
+                       return;
                } else {
                        if (parseattrstat(ndo, dp, ndo->ndo_vflag, v3) != 0)
                                return;
@@ -1655,8 +1655,8 @@ interp_reply(netdissect_options *ndo,
                                ND_PRINT((ndo, " dir:"));
                                if (!(dp = parse_wcc_data(ndo, dp, ndo->ndo_vflag)))
                                        break;
-                               return;
                        }
+                       return;
                } else {
                        if (parsestatus(ndo, dp, &er) != NULL)
                                return;