--- audit/audisp/audispd-config.c 2008-06-24 13:37:33.000000000 +0800 +++ audit-1.7.4/audisp/audispd-config.c 2008-06-24 13:38:45.000000000 +0800 @@ -388,6 +388,7 @@ { const char *ptr = nv->value; int i; + unsigned long j; audit_msg(LOG_DEBUG, "priority_boost_parser called with: %s", nv->value); @@ -403,7 +404,7 @@ } /* convert to unsigned int */ errno = 0; - i = strtoul(nv->value, NULL, 10); + j = strtoul(nv->value, NULL, 10); if (errno) { audit_msg(LOG_ERR, "Error converting string to a number (%s) - line %d", @@ -411,13 +412,13 @@ return 1; } /* Check its range */ - if (i > INT_MAX) { + if (j > INT_MAX) { audit_msg(LOG_ERR, "Error - converted number (%s) is too large - line %d", nv->value, line); return 1; } - config->priority_boost = (unsigned int)i; + config->priority_boost = (unsigned int)j; return 0; }