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

Stricter checks to pcache configuration (Re: commit: ldap/servers/slapd/overlays pcache.c)



On Wed, 2005-11-23 at 00:15 +0000, ando@OpenLDAP.org wrote:
> Update of /repo/OpenLDAP/pkg/ldap/servers/slapd/overlays
> 
> Modified Files:
> 	pcache.c  1.62 -> 1.63
> 
> Log Message:
> add some integrity checks on input, without changing syntax nor semantics (ITS#4199)

In response to ITS#4199, I've strengthened a bit the checks on pcache
input.  It passes test020 fine, but the test input is well-formed; I've
checked that it traps all the malformed inputs I could imagine (in few
harmless cases it simply issues a warning); please check that I didn't
break anything.  In detail, I'm unsure whether for some values 0 was
legal or not (e.g. for the ttl, for the period and so; the man page
doesn't specify anything as far as I can tell).

p.




Ing. Pierangelo Masarati
Responsabile Open Solution

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office:   +39.02.23998309          
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it
------------------------------------------