Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Oct 2004 09:33:33 +0200
From:      Danny Braniss <danny@cs.huji.ac.il>
To:        bushman@rsu.ru
Cc:        "Christian S.J. Peron" <csjp@freebsd.org>
Subject:   Re: nsdispatch services patch + lookupd 
Message-ID:  <20041027073335.8B74343D55@mx1.FreeBSD.org>
In-Reply-To: Message from Michael Bushkov <bushman@rsu.ru>  <1098785868.61417.39.camel@localhost> 

next in thread | previous in thread | raw e-mail | index | archive | help
while trying to add hesiod/dns support, i've noticed, what looks as a problem:

in nss_tls.h, the function name##_getstate(...) can return a static pointer,
which gets freed in name##_endstate(...), as far as i know, freeing a non
malloced memory is asking for trouble.
proposed fix, instead of static, also do a calloc(...).

danny




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041027073335.8B74343D55>