diff options
| author | Stef Walter <stef@memberwebs.com> | 2004-04-25 05:50:07 +0000 | 
|---|---|---|
| committer | Stef Walter <stef@memberwebs.com> | 2004-04-25 05:50:07 +0000 | 
| commit | 570c17aa3bb6a39030ebefc5618f0c3fa8cf0089 (patch) | |
| tree | 34fd08eb06f92c4aadec308151ddc8fc80dcab08 /daemon/misc.c | |
| parent | 36ab0775e1c5ec4352f36074cea8bfbe49302b80 (diff) | |
Debugging of simple authentication handler
Diffstat (limited to 'daemon/misc.c')
| -rw-r--r-- | daemon/misc.c | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/daemon/misc.c b/daemon/misc.c index c3f5ff4..9dba389 100644 --- a/daemon/misc.c +++ b/daemon/misc.c @@ -208,8 +208,7 @@ int ha_confint(const char* name, const char* conf, int min, int max, int* value)    errno = 0;    *value = strtol(conf, &p, 10); -  if(p != (name + strlen(name)) || errno == ERANGE || -     (*value < min) || (*value > max)) +  if(*p || errno == ERANGE || (*value < min) || (*value > max))    {      ha_messagex(LOG_ERR, "invalid configuration value '%s': must be a number between %d and %d", name, min, max);      return HA_ERROR;  | 
