Commit d1a69769 authored by Mark Andrews's avatar Mark Andrews

1002. [bug] Log unknown class including file and line. [RT #1759]

parent fc14ca7a
1002. [bug] Log unknown class including file and line. [RT #1759]
1001. [bug] win32 socket code doio_recv was not catching a
WSACONNRESET error when the client was timing out
the request and closing the connection. [RT #1745]
......
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: config.c,v 1.14 2001/09/08 00:21:35 gson Exp $ */
/* $Id: config.c,v 1.15 2001/09/17 00:33:52 marka Exp $ */
#include <config.h>
......@@ -184,6 +184,7 @@ ns_config_getclass(cfg_obj_t *classobj, dns_rdataclass_t defclass,
dns_rdataclass_t *classp) {
char *str;
isc_textregion_t r;
isc_result_t result;
if (!cfg_obj_isstring(classobj)) {
*classp = defclass;
......@@ -192,7 +193,11 @@ ns_config_getclass(cfg_obj_t *classobj, dns_rdataclass_t defclass,
str = cfg_obj_asstring(classobj);
r.base = str;
r.length = strlen(str);
return (dns_rdataclass_fromtext(classp, &r));
result = dns_rdataclass_fromtext(classp, &r);
if (result != ISC_R_SUCCESS)
cfg_obj_log(classobj, ns_g_lctx, ISC_LOG_ERROR,
"unknown class '%s'", str);
return (result);
}
dns_zonetype_t
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment