]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-sflow.c
Make 1-element arrays for fields that may repeat.
[tcpdump] / print-sflow.c
index 0ccb1f32337d1aee77e9267ffcc9d697f4bba3bb..b16a3ed60cd52de2a59c0466d7ba3dedd34cc1b8 100644 (file)
@@ -945,7 +945,7 @@ sflow_print(netdissect_options *ndo,
            goto trunc;
 
         /* did we capture enough for fully decoding the sample ? */
-        ND_TCHECK2(*tptr, sflow_sample_len);
+        ND_TCHECK_LEN(tptr, sflow_sample_len);
 
        switch(sflow_sample_type) {
         case SFLOW_FLOW_SAMPLE: