Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
633
Issues
633
List
Boards
Labels
Service Desk
Milestones
Merge Requests
107
Merge Requests
107
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
962bf88e
Commit
962bf88e
authored
Mar 08, 2012
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3294. [bug] isccc/cc.c:table_fromwire failed to free alist on
error. [RT #28265]
parent
070d2035
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
19 deletions
+14
-19
CHANGES
CHANGES
+3
-0
bin/named/controlconf.c
bin/named/controlconf.c
+2
-11
lib/isccc/cc.c
lib/isccc/cc.c
+9
-8
No files found.
CHANGES
View file @
962bf88e
3294. [bug] isccc/cc.c:table_fromwire failed to free alist on
error. [RT #28265]
3293. [func] nsupdate: list supported type. [RT #28261]
3292. [func] Log messages in the axfr stream at debug 10.
...
...
bin/named/controlconf.c
View file @
962bf88e
...
...
@@ -373,17 +373,8 @@ control_recvmessage(isc_task_t *task, isc_event_t *event) {
if
(
result
==
ISC_R_SUCCESS
)
break
;
isc_mem_put
(
listener
->
mctx
,
secret
.
rstart
,
REGION_SIZE
(
secret
));
if
(
result
==
ISCCC_R_BADAUTH
)
{
/*
* For some reason, request is non-NULL when
* isccc_cc_fromwire returns ISCCC_R_BADAUTH.
*/
if
(
request
!=
NULL
)
isccc_sexpr_free
(
&
request
);
}
else
{
log_invalid
(
&
conn
->
ccmsg
,
result
);
goto
cleanup
;
}
log_invalid
(
&
conn
->
ccmsg
,
result
);
goto
cleanup
;
}
if
(
key
==
NULL
)
{
...
...
lib/isccc/cc.c
View file @
962bf88e
...
...
@@ -403,16 +403,17 @@ table_fromwire(isccc_region_t *source, isccc_region_t *secret,
if
(
secret
!=
NULL
)
{
if
(
checksum_rstart
!=
NULL
)
re
turn
(
verify
(
alist
,
checksum_rstart
,
(
source
->
rend
-
checksum_rstart
),
secret
)
);
return
(
ISCCC_R_BADAUTH
);
}
return
(
ISC_R_SUCCESS
)
;
re
sult
=
verify
(
alist
,
checksum_rstart
,
(
source
->
rend
-
checksum_rstart
),
secret
);
else
result
=
ISCCC_R_BADAUTH
;
}
else
result
=
ISC_R_SUCCESS
;
bad:
isccc_sexpr_free
(
&
alist
);
if
(
result
!=
ISC_R_SUCCESS
)
isccc_sexpr_free
(
&
alist
);
return
(
result
);
}
...
...
Write
Preview
Markdown
is supported
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