+4313. [bug] Handle ns_client_replace failures in test mode.
+ [RT #41190]
+
4312. [bug] dig's unknown dns and edns flags (MBZ value) logging
was not consistent. [RT #41600]
/*
* Test only.
*/
- if (ns_g_clienttest && !TCP(client))
- RUNTIME_CHECK(ns_client_replace(client) == ISC_R_SUCCESS);
+ if (ns_g_clienttest && !TCP(client)) {
+ result = ns_client_replace(client);
+ if (result == ISC_R_SHUTTINGDOWN) {
+ ns_client_next(client, result);
+ return;
+ } else if (result != ISC_R_SUCCESS) {
+ query_error(client, result, __LINE__);
+ return;
+ }
+ }
/*
* Ensure that appropriate cleanups occur.