Correct a backport inconsistency in bind-9.11-rt46047.patch

The patch seems to have been generated from a more recent bind
tree in which `ns_g_lctx` was renamed `named_g_lctx`. So the
patch uses the `named_g_lctx` name, but the rest of server.c
in bind-9.11 still uses the name `ns_g_lctx`, so if you compile
with --disable-crypto-rand, the build actually fails with an
undeclared name error.
This commit is contained in:
Adam Williamson 2019-01-11 23:35:03 -08:00
parent ae36af4c9f
commit a1558710fb

View File

@ -299,7 +299,7 @@ index 9258e7f..f4320df 100644
- randomdev); - randomdev);
+ if ((obj != NULL) && !cfg_obj_isvoid(obj)) + if ((obj != NULL) && !cfg_obj_isvoid(obj))
+ level = ISC_LOG_INFO; + level = ISC_LOG_INFO;
+ isc_log_write(named_g_lctx, NS_LOGCATEGORY_GENERAL, + isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
+ NS_LOGMODULE_SERVER, level, + NS_LOGMODULE_SERVER, level,
+ "no source of entropy found"); + "no source of entropy found");
+ if ((obj == NULL) || cfg_obj_isvoid(obj)) { + if ((obj == NULL) || cfg_obj_isvoid(obj)) {