#
1.18 |
|
02-Aug-2022 |
deraadt |
1) The yp_bind/yp_unbind and internal _yp_dobind/_yp_unbind sequences shared dom_binding structs between threads, which is unsafe -- example, dom_vers signalled retry events, and structs+socket would get deallocated in _yp_unbind. Change all yp_first (and similar) functions to understand that _yp_dobind now provides a private dom_binding and socket, which must be released using _yp_unbind. Use similar methods in the one-step yp_all function. 2) domainname caching in get* is not neccessary now that the domainname cannot change relative to ypconnect(2)'s decisions. Many fields in dom_binding struct become unused, so delete them. ok jmatthew, also tested by miod
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
|
#
1.17 |
|
13-Sep-2015 |
guenther |
Wrap <rpcsvc/ypclnt.h> so that calls go direct and the symbols are all weak
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.16 |
|
16-Jan-2015 |
deraadt |
Move to the <limits.h> universe. review by millert, binary checking process with doug, concept with guenther
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.15 |
|
01-Nov-2009 |
schwarze |
Two minor bug fixes rotting in my tree: (1) When the second malloc in yp_next fails, do not leak the memory allocated by the first one. Same fix as yp_first.c rev. 1.9. (2) When compiled with YPMATCHCACHE, do not fail the lookup when reserving memory for the cache fails. Instead, just return the correct result without caching it. ok millert@
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.14 |
|
06-Jun-2009 |
schwarze |
In case of memory exhaustion, ypmatch_add may both leak memory and leave invalid data on the list, inviting later NULL pointer access. noticed by deraadt@, algorithm proposed by millert, implemented by me; feedback and ok millert@
|
#
1.13 |
|
05-Jun-2009 |
schwarze |
malloc(3) failure should raise YPERR_RESRC, not YPERR_YPERR; ok millert@
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
|
#
1.12 |
|
05-Aug-2005 |
espie |
- remove rcsid - put all the YPMATCHCACHE code into a #ifdef, proper - remove all extra header files that are not needed
okay deraadt@
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.11 |
|
25-Jun-2003 |
marc |
Move static funcion and variable declarations from header to the .c file where they are used. Gets rid of YPMATCHCACHE define. Sure deraadt@
|
#
1.10 |
|
02-Jun-2003 |
deraadt |
remove terms 3 & 4 on my own software
|
Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.9 |
|
31-Jul-2002 |
deraadt |
if ypmatch_add sees short keys or values, abort early
|
#
1.8 |
|
20-Jul-2002 |
deraadt |
ansi
|
Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE
|
#
1.7 |
|
20-Jan-1998 |
deraadt |
for yp_match() and yp_next(), do not permit keys longer than YPMAXRECORD
|
Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE
|
#
1.6 |
|
03-Dec-1996 |
deraadt |
never bitch about first failure
|
Revision tags: OPENBSD_2_0_BASE
|
#
1.5 |
|
15-Sep-1996 |
tholo |
Remove dead code Remove unused variables Silence some warnings lint(1) is your friend
|
#
1.4 |
|
19-Aug-1996 |
tholo |
Fix RCS ids Make sure everything uses {SYS,}LIBC_SCCS properly
|
#
1.3 |
|
01-Jul-1996 |
deraadt |
update rcsid
|
#
1.2 |
|
22-May-1996 |
deraadt |
repair return values, more checking
|
#
1.1 |
|
24-Apr-1996 |
deraadt |
yp_prot.h lies -> use yp.h (from yp.x) instead, change lots of structure accesses to match. change xdr_domainname() and some other functions to take "char **" instead of "char *", as rpcgen intended -- helps programs linking against rpcgen output of yp.x. yp_all() should not free it's return value. split xdryp.c and yplib.c into ~20 files so binaries like "csh" need not link in functions like yp_maplist(). NIS+'s YP emulation code lacks YPPROC_ORDER... attempt to deal nicely.
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.17 |
|
13-Sep-2015 |
guenther |
Wrap <rpcsvc/ypclnt.h> so that calls go direct and the symbols are all weak
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.16 |
|
16-Jan-2015 |
deraadt |
Move to the <limits.h> universe. review by millert, binary checking process with doug, concept with guenther
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.15 |
|
01-Nov-2009 |
schwarze |
Two minor bug fixes rotting in my tree: (1) When the second malloc in yp_next fails, do not leak the memory allocated by the first one. Same fix as yp_first.c rev. 1.9. (2) When compiled with YPMATCHCACHE, do not fail the lookup when reserving memory for the cache fails. Instead, just return the correct result without caching it. ok millert@
|
Revision tags: OPENBSD_4_6_BASE
|
#
1.14 |
|
06-Jun-2009 |
schwarze |
In case of memory exhaustion, ypmatch_add may both leak memory and leave invalid data on the list, inviting later NULL pointer access. noticed by deraadt@, algorithm proposed by millert, implemented by me; feedback and ok millert@
|
#
1.13 |
|
05-Jun-2009 |
schwarze |
malloc(3) failure should raise YPERR_RESRC, not YPERR_YPERR; ok millert@
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
|
#
1.12 |
|
05-Aug-2005 |
espie |
- remove rcsid - put all the YPMATCHCACHE code into a #ifdef, proper - remove all extra header files that are not needed
okay deraadt@
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.11 |
|
25-Jun-2003 |
marc |
Move static funcion and variable declarations from header to the .c file where they are used. Gets rid of YPMATCHCACHE define. Sure deraadt@
|
#
1.10 |
|
02-Jun-2003 |
deraadt |
remove terms 3 & 4 on my own software
|
Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.9 |
|
31-Jul-2002 |
deraadt |
if ypmatch_add sees short keys or values, abort early
|
#
1.8 |
|
20-Jul-2002 |
deraadt |
ansi
|
Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE
|
#
1.7 |
|
20-Jan-1998 |
deraadt |
for yp_match() and yp_next(), do not permit keys longer than YPMAXRECORD
|
Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE
|
#
1.6 |
|
03-Dec-1996 |
deraadt |
never bitch about first failure
|
Revision tags: OPENBSD_2_0_BASE
|
#
1.5 |
|
15-Sep-1996 |
tholo |
Remove dead code Remove unused variables Silence some warnings lint(1) is your friend
|
#
1.4 |
|
19-Aug-1996 |
tholo |
Fix RCS ids Make sure everything uses {SYS,}LIBC_SCCS properly
|
#
1.3 |
|
01-Jul-1996 |
deraadt |
update rcsid
|
#
1.2 |
|
22-May-1996 |
deraadt |
repair return values, more checking
|
#
1.1 |
|
24-Apr-1996 |
deraadt |
yp_prot.h lies -> use yp.h (from yp.x) instead, change lots of structure accesses to match. change xdr_domainname() and some other functions to take "char **" instead of "char *", as rpcgen intended -- helps programs linking against rpcgen output of yp.x. yp_all() should not free it's return value. split xdryp.c and yplib.c into ~20 files so binaries like "csh" need not link in functions like yp_maplist(). NIS+'s YP emulation code lacks YPPROC_ORDER... attempt to deal nicely.
|