result = named_config_get(maps, type, &portobj);
INSIST(result == ISC_R_SUCCESS);
- if (cfg_obj_asuint32(portobj) >= UINT16_MAX) {
+ if (cfg_obj_asuint32(portobj) > UINT16_MAX) {
cfg_obj_log(portobj, ISC_LOG_ERROR, "port '%u' out of range",
cfg_obj_asuint32(portobj));
return ISC_R_RANGE;
cfg_tuple_get(aclobj, "port-transport"), "transport");
if (cfg_obj_isuint32(obj_port) &&
- cfg_obj_asuint32(obj_port) >= UINT16_MAX)
+ cfg_obj_asuint32(obj_port) > UINT16_MAX)
{
cfg_obj_log(obj_port, ISC_LOG_ERROR,
"port value '%u' is out of range",
}
portobj = cfg_tuple_get(ltup, "port");
- if (cfg_obj_isuint32(portobj) &&
- cfg_obj_asuint32(portobj) >= UINT16_MAX)
+ if (cfg_obj_isuint32(portobj) && cfg_obj_asuint32(portobj) > UINT16_MAX)
{
cfg_obj_log(portobj, ISC_LOG_ERROR,
"port value '%u' is out of range",
return ISC_R_SUCCESS;
}
- if (cfg_obj_asuint32(portobj) >= UINT16_MAX) {
+ if (cfg_obj_asuint32(portobj) > UINT16_MAX) {
cfg_obj_log(portobj, ISC_LOG_ERROR, "port '%u' out of range",
cfg_obj_asuint32(portobj));
return ISC_R_RANGE;