Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
d1a69769
Commit
d1a69769
authored
Sep 17, 2001
by
Mark Andrews
Browse files
1002. [bug] Log unknown class including file and line. [RT
#1759
]
parent
fc14ca7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
d1a69769
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]
...
...
bin/named/config.c
View file @
d1a69769
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: config.c,v 1.1
4
2001/09/
08
00:
21:35 gson
Exp $ */
/* $Id: config.c,v 1.1
5
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment