Skip to content
GitLab
Menu
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
ea419adc
Commit
ea419adc
authored
Aug 11, 2000
by
Andreas Gustafsson
Browse files
386. [bug] Missing strdup() of ACL name caused random
ACL matching failures.
parent
de58ecaa
Changes
4
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
ea419adc
386. [bug] Missing strdup() of ACL name caused random
ACL matching failures.
385. [cleanup] Removed function dns_zone_equal().
384. [bug] nsupdate was incorrectly limiting TTLs to 65535 instead
...
...
bin/named/aclconf.c
View file @
ea419adc
...
...
@@ -15,10 +15,11 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: aclconf.c,v 1.2
0
2000/08/
0
1 01:
22:08 tale
Exp $ */
/* $Id: aclconf.c,v 1.2
1
2000/08/
1
1 01:
53:47 gson
Exp $ */
#include <config.h>
#include <isc/mem.h>
#include <isc/string.h>
/* Required for HP/UX (and others?) */
#include <isc/util.h>
...
...
@@ -75,7 +76,7 @@ convert_named_acl(char *aclname, dns_c_ctx_t *cctx,
result
=
dns_acl_fromconfig
(
cacl
->
ipml
,
cctx
,
ctx
,
mctx
,
&
dacl
);
if
(
result
!=
ISC_R_SUCCESS
)
return
(
result
);
dacl
->
name
=
aclname
;
dacl
->
name
=
isc_mem_strdup
(
dacl
->
mctx
,
aclname
)
;
ISC_LIST_APPEND
(
ctx
->
named_acl_cache
,
dacl
,
nextincache
);
dns_acl_attach
(
dacl
,
target
);
return
(
ISC_R_SUCCESS
);
...
...
lib/dns/acl.c
View file @
ea419adc
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: acl.c,v 1.1
3
2000/08/
0
1 01:
22:07 tale
Exp $ */
/* $Id: acl.c,v 1.1
4
2000/08/
1
1 01:
53:46 gson
Exp $ */
#include <config.h>
...
...
@@ -242,6 +242,8 @@ destroy(dns_acl_t *dacl) {
if
(
dacl
->
elements
!=
NULL
)
isc_mem_put
(
dacl
->
mctx
,
dacl
->
elements
,
dacl
->
alloc
*
sizeof
(
dns_aclelement_t
));
if
(
dacl
->
name
!=
NULL
)
isc_mem_free
(
dacl
->
mctx
,
dacl
->
name
);
dacl
->
magic
=
0
;
isc_mem_put
(
dacl
->
mctx
,
dacl
,
sizeof
(
*
dacl
));
}
...
...
lib/dns/aclconf.c
View file @
ea419adc
...
...
@@ -15,10 +15,11 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: aclconf.c,v 1.2
0
2000/08/
0
1 01:
22:08 tale
Exp $ */
/* $Id: aclconf.c,v 1.2
1
2000/08/
1
1 01:
53:47 gson
Exp $ */
#include <config.h>
#include <isc/mem.h>
#include <isc/string.h>
/* Required for HP/UX (and others?) */
#include <isc/util.h>
...
...
@@ -75,7 +76,7 @@ convert_named_acl(char *aclname, dns_c_ctx_t *cctx,
result
=
dns_acl_fromconfig
(
cacl
->
ipml
,
cctx
,
ctx
,
mctx
,
&
dacl
);
if
(
result
!=
ISC_R_SUCCESS
)
return
(
result
);
dacl
->
name
=
aclname
;
dacl
->
name
=
isc_mem_strdup
(
dacl
->
mctx
,
aclname
)
;
ISC_LIST_APPEND
(
ctx
->
named_acl_cache
,
dacl
,
nextincache
);
dns_acl_attach
(
dacl
,
target
);
return
(
ISC_R_SUCCESS
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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