Skip to content

Commit

Permalink
proper fix of 9a20bf3
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiering committed Dec 29, 2016
1 parent 4ebc1cb commit 785c333
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ipv6loganon/ipv6loganon.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ static void lineparser(void) {
* Anonymize token
*/
static int anonymizetoken(char *resultstring, const size_t resultstring_length, const char *token) {
long int inputtype = -1;
uint32_t inputtype = FORMAT_undefined;
int retval = 1, i;

/* used structures */
Expand Down Expand Up @@ -462,9 +462,9 @@ static int anonymizetoken(char *resultstring, const size_t resultstring_length,
inputtype = libipv6calc_autodetectinput(token);

DEBUGSECTION_BEGIN(DEBUG_ipv6loganon_general)
if (inputtype >= 0) {
if (inputtype != FORMAT_undefined) {
for (i = 0; i < MAXENTRIES_ARRAY(ipv6calc_formatstrings); i++) {
if ((uint32_t) inputtype == ipv6calc_formatstrings[i].number) {
if (inputtype == ipv6calc_formatstrings[i].number) {
DEBUGPRINT_WA(DEBUG_ipv6loganon_general, "Found type: %s", ipv6calc_formatstrings[i].token);
};
break;
Expand Down
6 changes: 3 additions & 3 deletions ipv6logconv/ipv6logconv.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ static void lineparser(const long int outputtype) {
* Convert token
*/
static int converttoken(char *resultstring, const size_t resultstring_length, const char *token, const long int outputtype, const int flag_skipunknown) {
long int inputtype = -1;
uint32_t inputtype = FORMAT_undefined;
int retval = 1, i, registry;
uint32_t typeinfo, typeinfo_test;
char tempstring[NI_MAXHOST];
Expand Down Expand Up @@ -465,9 +465,9 @@ static int converttoken(char *resultstring, const size_t resultstring_length, co
inputtype = libipv6calc_autodetectinput(token);

DEBUGSECTION_BEGIN(DEBUG_ipv6logconv_processing)
if (inputtype >= 0) {
if (inputtype != FORMAT_undefined) {
for (i = 0; i < MAXENTRIES_ARRAY(ipv6calc_formatstrings); i++) {
if ((uint32_t) inputtype == ipv6calc_formatstrings[i].number) {
if (inputtype == ipv6calc_formatstrings[i].number) {
DEBUGPRINT_WA(DEBUG_ipv6logconv_processing, "Found type: %s", ipv6calc_formatstrings[i].token);
};
break;
Expand Down

0 comments on commit 785c333

Please sign in to comment.