command: removed range check from check_bool()

check_bool() accepts only "0" or "1".  The range check is superfluous.
This commit is contained in:
Max Kellermann 2008-10-26 16:19:33 +01:00
parent ece8c1347c
commit 4fa36a15bf
1 changed files with 0 additions and 6 deletions

View File

@ -192,12 +192,6 @@ check_bool(struct client *client, bool *value_r, const char *s)
return false;
}
if (value > UINT_MAX) {
command_error(client, ACK_ERROR_ARG,
"Number too large: %s", s);
return false;
}
*value_r = !!value;
return true;
}