Kurt Zeilenga
ecc44e2292
matched needs to be initialized to NULL as we may never
...
make it to dn2entry_r().
1998-12-28 16:41:39 +00:00
Kurt Zeilenga
dacc0bfc7d
Improve readability of base output in debugging.
...
Also, output UNKNOWN_PREFIX ('?') instead of writing a nul character
when the attribute prefix is unknown.
1998-12-28 00:44:15 +00:00
Kurt Zeilenga
bf5ecff613
Plug addtional realBase memory leaks.
1998-12-27 23:23:09 +00:00
Hallvard Furuseth
d59de0c50f
Plug some memory leak
1998-12-27 04:19:57 +00:00
Kurt Zeilenga
2ffb9ae30d
ITS#12 realBase was being freed before use. The offending free()
...
call has been removed and additional code added to properly free
realBase variable. Also fixed leaking of the matched variable.
1998-12-21 17:45:47 +00:00
Kurt Zeilenga
e2ee741ea8
Replace strdup() with ch_strdup() such that exit() will be called
...
if strdup fails. This is better than not checking, but we should
add orderly shutdown.
1998-11-27 20:21:54 +00:00
Kurt Zeilenga
b2ec7af331
Changed dn2entry to always returned a modified matched.
...
Modified users of this code to free matched if set.
1998-11-23 20:08:25 +00:00
Hallvard Furuseth
7e6ad5100c
Protoized, moved extern definitions to .h files, fixed related bugs.
...
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-15 22:40:11 +00:00
Hallvard Furuseth
523fd2c891
Fix most `wider type truncated to int' bugs on OSF1 due to implicit decls:
...
#include <stdlib.h> to get malloc & co various places,
#include <ac/string.h> to get strlen & co in (liblutil/setproctitle.c),
declare ch_malloc & co (slurp.h), avl_find_lin (avl.h), Malloc (ud/edit.c).
Also changed ch_malloc & co from char* to void* functions.
1998-11-11 23:37:38 +00:00
Hallvard Furuseth
853a1371d1
Some gcc -W... cleanup
1998-11-05 06:49:49 +00:00
Kurt Zeilenga
033cf4ebe7
Fixup bugs created by merge.
1998-10-26 17:37:35 +00:00
Kurt Zeilenga
2a869f5a99
merged with autoconf branch
1998-10-25 01:41:42 +00:00
Kurt Zeilenga
32d9124fed
Updated derefAlias/DN to handle Entry R/W locks.
...
New alias.c provided by Stuart Lynne.
1998-10-24 04:01:20 +00:00
Kurt Zeilenga
bf6c1e0ad2
Added Will Ballantyne's General Aliasing code.
...
Not quite sure if the entry lock handling is correct yet.
1998-10-24 02:42:38 +00:00
Kurt Zeilenga
1d0e090998
remove lint reported by Hallvard
...
This could have caused a crash.
1998-10-23 22:00:20 +00:00
Kurt Zeilenga
4a5d740e2e
Merged in per cache entry reader/writer locks from OPENLDAP_DEVEL_THREAD
1998-09-20 20:22:46 +00:00
Kurt Zeilenga
1cad5fd9b2
LDAPworld P13: LDAPv2 client referrals bug
1998-08-09 02:56:52 +00:00
Kurt Zeilenga
42e0d83cb3
Initial revision
1998-08-09 00:43:13 +00:00