diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2011-07-20 12:24:41 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2011-07-20 12:24:41 +0000 |
commit | 3a88c5c7dd96d3dcbde00e221e35e6f7d76053fd (patch) | |
tree | a157b279cb391420add9a8ab1cea75c8ae818839 /editcap.c | |
parent | 7d7f7d870e35df50aa1f2b6c5928e99d707cbb25 (diff) |
Don't sanity-check snaplen against frame length if snaplen is 0.
svn path=/trunk/; revision=38132
Diffstat (limited to 'editcap.c')
-rw-r--r-- | editcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1444,7 +1444,7 @@ main(int argc, char *argv[]) } } - if(phdr->caplen > wtap_snapshot_length(wth)) { + if((wtap_snapshot_length(wth) != 0) && (phdr->caplen > wtap_snapshot_length(wth))) { fprintf(stderr, "Warning: packet %d too big for file type, skipping it...\n", count); count++; continue; |