can be set to NULL once the log context has been freed.
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: log.c,v 1.26 2000/08/01 01:22:28 tale Exp $ */
+/* $Id: log.c,v 1.27 2000/09/26 22:10:44 bwelling Exp $ */
/* Principal Authors: DCL */
void
dns_log_setcontext(isc_log_t *lctx) {
- REQUIRE(dns_lctx == NULL);
-
dns_lctx = lctx;
}
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: log.c,v 1.46 2000/08/31 20:58:14 bwelling Exp $ */
+/* $Id: log.c,v 1.47 2000/09/26 22:10:22 bwelling Exp $ */
/* Principal Authors: DCL */
void
isc_log_setcontext(isc_log_t *lctx) {
- REQUIRE(isc_lctx == NULL);
-
isc_lctx = lctx;
}
* dynamically changed.
*/
- if (lctx == NULL)
+ if (lctx == NULL || lctx->logconfig == NULL)
return (ISC_FALSE);
return (ISC_TF(level <= lctx->logconfig->highest_level ||