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
09e5d870
Commit
09e5d870
authored
Aug 12, 2008
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix missing free in dispatch_AFC_packet
parent
a885ca9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
AFC.c
src/AFC.c
+1
-0
ifuse.c
src/ifuse.c
+3
-1
No files found.
src/AFC.c
View file @
09e5d870
...
@@ -179,6 +179,7 @@ static int dispatch_AFC_packet(AFClient *client, const char *data, int length) {
...
@@ -179,6 +179,7 @@ static int dispatch_AFC_packet(AFClient *client, const char *data, int length) {
if
(
debug
)
fwrite
(
buffer
,
1
,
client
->
afc_packet
->
this_length
,
stdout
);
if
(
debug
)
fwrite
(
buffer
,
1
,
client
->
afc_packet
->
this_length
,
stdout
);
if
(
debug
)
fprintf
(
stderr
,
"
\n
"
);
if
(
debug
)
fprintf
(
stderr
,
"
\n
"
);
bytes
=
mux_send
(
client
->
connection
,
buffer
,
client
->
afc_packet
->
this_length
);
bytes
=
mux_send
(
client
->
connection
,
buffer
,
client
->
afc_packet
->
this_length
);
if
(
buffer
)
free
(
buffer
);
return
bytes
;
return
bytes
;
}
}
return
-
1
;
return
-
1
;
...
...
src/ifuse.c
View file @
09e5d870
...
@@ -63,6 +63,8 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) {
...
@@ -63,6 +63,8 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) {
stbuf
->
st_blocks
=
file
->
blocks
;
stbuf
->
st_blocks
=
file
->
blocks
;
stbuf
->
st_uid
=
getuid
();
stbuf
->
st_uid
=
getuid
();
stbuf
->
st_gid
=
getgid
();
stbuf
->
st_gid
=
getgid
();
afc_close_file
(
afc
,
file
);
}
}
return
res
;
return
res
;
...
@@ -205,7 +207,7 @@ void *ifuse_init(struct fuse_conn_info *conn) {
...
@@ -205,7 +207,7 @@ void *ifuse_init(struct fuse_conn_info *conn) {
port
=
lockdownd_start_service
(
control
,
"com.apple.afc"
);
port
=
lockdownd_start_service
(
control
,
"com.apple.afc"
);
if
(
!
port
)
{
if
(
!
port
)
{
lockdownd_close
(
control
);
lockdownd_close
(
control
);
free_i
p
hone
(
phone
);
free_i
P
hone
(
phone
);
fprintf
(
stderr
,
"Something went wrong when starting AFC."
);
fprintf
(
stderr
,
"Something went wrong when starting AFC."
);
return
NULL
;
return
NULL
;
}
}
...
...
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