diff --git a/include/ldap.h b/include/ldap.h index 85b968a75ec3fd3685974d3a8c45fb3edaa54767..8712dec1d702ee11f9bcb39f2d648e498fab3c42 100644 --- a/include/ldap.h +++ b/include/ldap.h @@ -289,7 +289,7 @@ typedef struct ldapmod { * possible error codes we can return */ -#define LDAP_RANGE(n,x,y) (((x) >= (n)) && ((n) <= (y))) +#define LDAP_RANGE(n,x,y) (((x) <= (n)) && ((n) <= (y))) #define LDAP_SUCCESS 0x00 #define LDAP_OPERATIONS_ERROR 0x01