Skip to content

Commit

Permalink
Bug appneta#374 one more coverity detected issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fklassen committed May 2, 2017
1 parent 28f3198 commit 8416992
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
05/02/2017 Version 4.2.5
- Coverity static scan detected issues (#374)
- Fuzz should not be overwritting Layer 3 (#372)
- Add --fuzz-factor option to specify fuzz ratio (#371)
- Warnings when building on old distributions (#368)
Expand Down
3 changes: 3 additions & 0 deletions src/tcpprep.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,9 @@ print_stats(const char *file)
COUNTER pri = 0, sec = 0, nosend = 0;

count = read_cache(&cachedata, file, &comment);
if (count > 65535)
exit(-1);

for (COUNTER i = 1; i <= count; i ++) {
int cacheval = check_cache(cachedata, i);
switch (cacheval) {
Expand Down

0 comments on commit 8416992

Please sign in to comment.