Skip to content

Commit

Permalink
bugfix: mmanon did not properly anonymize IP addresses starting with '9'
Browse files Browse the repository at this point in the history
Thanks to defa-at-so36.net for reporting this problem.
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=529
  • Loading branch information
rgerhards committed Aug 25, 2014
1 parent fe81f1c commit 09e4d85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ Version 7.6.4 [v7.6-stable] 2014-03-??
This was a regression introduced some time in the past in order to
support API changes in json-c. Now we check for the version and use
proper code.
- bugfix: mmanon did not properly anonymize IP addresses starting with '9'
Thanks to defa-at-so36.net for reporting this problem.
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=529
---------------------------------------------------------------------------
Version 7.6.3 [v7.6-stable] 2014-03-27
- add capability to override GnuTLS path in build process
Expand Down
2 changes: 1 addition & 1 deletion plugins/mmanon/mmanon.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ anonip(instanceData *pData, uchar *msg, int *pLenMsg, int *idx)
int endpos;
int lenMsg = *pLenMsg;

while(i < lenMsg && (msg[i] <= '0' || msg[i] >= '9')) {
while(i < lenMsg && (msg[i] <= '0' || msg[i] > '9')) {
++i; /* skip to first number */
}
if(i >= lenMsg)
Expand Down

0 comments on commit 09e4d85

Please sign in to comment.