Re: [patch] dup_ent does not set dst when src is NULL

2005-04-06 Thread Brian Dessent
Christopher Faylor wrote: Thanks for the patch, but I went out of my way to avoid freeing the buffer when I maded changes to dup_ent a couple of weeks ago. I don't want to revert to doing that again, so I've just used the return value in all cases. Thanks for taking care of that. My

[patch] dup_ent does not set dst when src is NULL

2005-04-05 Thread Brian Dessent
In net.cc, there are several cases where dup_ent() is used as follows: dup_ent (servent_buf, getservbyname (name, proto), t_servent); syscall_printf (%p = getservbyname (%s, %s), _my_tls.locals.servent_buf, name, proto); return _my_tls.locals.servent_buf; This presents a problem if