]> git.sur5r.net Git - openldap/commit
Make ldap_int_thread_userctx_t.ltu_key[] a proper NULL-terminated array.
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 9 May 2007 22:59:04 +0000 (22:59 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 9 May 2007 22:59:04 +0000 (22:59 +0000)
commitf0a151142223b016ef9717db3afb9259ee377481
treed8cac84fdeaa88b9f45f662e808d360923d2ce24
parentf5da908c4936ea384becd6a8f05e75f8ff01cef0
Make ldap_int_thread_userctx_t.ltu_key[] a proper NULL-terminated array.
(setkey/getkey expected that, but purgekey could set a NULL in the middle.)
Added some checks for input key!=NULL.

API changes, need review - I'm not sure what's indented here:
- setkey(data=NULL, kfree!=NULL) searched as if intended to reset
  the key, but updated by setting the key.  Now always updates.
- setkey(key=<not found>, data=NULL) could return either success or
  failure.  Now succeeds iff (data == NULL && kfree == NULL).
libraries/libldap_r/tpool.c