mirror of
https://github.com/OISF/suricata.git
synced 2026-05-28 04:32:12 -04:00
reputation: remove unused code
Remove useless while() that led to buffer underflow Ticket: #8500
This commit is contained in:
parent
029fd1be59
commit
2e22ba65e7
1 changed files with 0 additions and 4 deletions
|
|
@ -373,8 +373,6 @@ int SRepLoadCatFileFromFD(FILE *fp)
|
|||
if (line[0] == '\n' || line [0] == '\r' || line[0] == ' ' || line[0] == '#' || line[0] == '\t')
|
||||
continue;
|
||||
|
||||
while (isspace((unsigned char)line[--len]));
|
||||
|
||||
/* Check if we have a trailing newline, and remove it */
|
||||
len = strlen(line);
|
||||
if (len == 0)
|
||||
|
|
@ -433,8 +431,6 @@ int SRepLoadFileFromFD(SRepCIDRTree *cidr_ctx, FILE *fp)
|
|||
if (line[0] == '\n' || line [0] == '\r' || line[0] == ' ' || line[0] == '#' || line[0] == '\t')
|
||||
continue;
|
||||
|
||||
while (isspace((unsigned char)line[--len]));
|
||||
|
||||
/* Check if we have a trailing newline, and remove it */
|
||||
len = strlen(line);
|
||||
if (len == 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue