[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#7669) tool_bind in common.c should be doing conditional assert



k.venkata.kiran@ericsson.com wrote:
> Full_Name: Venkata Kiran K
> Version: 2.4.35
> OS: linux
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (192.71.175.12)
>
>
> tool_bind has below assert which might be hit when nsctrls is not updated
>
> assert(nsctrls < (int) (sizeof(sctrls) / sizeof(sctrls[0])));

nsctrls is initialized to 0. If it is not updated, the assert condition will 
of course be true, so the problem you describe cannot arise. Please provide a 
test case to demonstrate the problem you're seeing, otherwise this ITS will be 
closed.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/