freebsd-src/gnu/usr.sbin/ypserv
Bill Paul 336844dba4 phkmalloc strikes!
#ifdef out a number of calls to free() left over from the original
GNU ypserv implementation. As near as I can tell, the Berkeley DB
package does its own garbage collection, hence the caller doesn't
have to worry about free()ing the memory returned in the DBT
structures during lookups (I'm still not 1005 sure about this:
the DB code is very hard to follow. I must use dynamically
allocated memory since you can retreive arbitrarily large records
from a database, but I'm not sure where it ends up letting go
of it). This was not true with GDBM; you had
to do your own garbage collection.

The general rule is that if you allocate memory inside an RPC
service routine, you have to free() it the next time the routine is
called since the underlying XDR routines won't do it for you.
But if the DB package does this itself, then we don't need to do
it in the main program.

Note that with the original malloc(), there were never any errors
flagged. phkmalloc complained quite loudly.
1995-09-24 17:21:52 +00:00
..
dnslookup.c Include <sys/types.h> explicitly to get declaration of u_long for 1995-02-03 20:25:59 +00:00
Makefile Change install' to ${INSTALL}' so that default install flags can be 1995-07-25 00:37:58 +00:00
Makefile.yp Fix bug pointed out by user on c.u.b.f.m: commenting out NOPUSH=true 1995-08-11 13:55:42 +00:00
mknetid
server.c phkmalloc strikes! 1995-09-24 17:21:52 +00:00
svc_run.c server.c: When 'securenets' (actually TCP_WRAPPERS) is enabled, don't 1995-07-14 01:56:51 +00:00
system.h
yp.h Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
yp_svc.c Updates, fixes and cleanups -- oh my. 1995-07-19 17:44:41 +00:00
yp_xdr.c Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
ypserv.8 Added a new feature from Peter Eriksson's latest release of ypserv (0.13): 1995-04-05 03:23:40 +00:00