Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
e9e663d5
Commit
e9e663d5
authored
Aug 12, 2008
by
Christophe Fergeau
Committed by
Jonathan Beck
Aug 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't leak r_packet in receive_AFC_data in the "false alarm" case
parent
216c9e80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
AFC.c
src/AFC.c
+1
-1
No files found.
src/AFC.c
View file @
e9e663d5
...
...
@@ -234,6 +234,7 @@ static int receive_AFC_data(AFClient *client, char **dump_here) {
if
(
debug
)
fprintf
(
stderr
,
"Oops? Bad operation code received: 0x%X, operation=0x%X, param1=%d
\n
"
,
r_packet
->
operation
,
client
->
afc_packet
->
operation
,
param1
);
recv_len
=
r_packet
->
entire_length
-
r_packet
->
this_length
;
free
(
r_packet
);
if
(
debug
)
fprintf
(
stderr
,
"recv_len=%d
\n
"
,
recv_len
);
if
(
param1
==
0
)
{
if
(
debug
)
fprintf
(
stderr
,
"... false alarm, but still
\n
"
);
...
...
@@ -241,7 +242,6 @@ static int receive_AFC_data(AFClient *client, char **dump_here) {
return
0
;
}
else
{
if
(
debug
)
fprintf
(
stderr
,
"Errno %i
\n
"
,
param1
);
}
free
(
r_packet
);
*
dump_here
=
NULL
;
return
-
1
;
}
else
{
...
...
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