Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
d6888b0d
Commit
d6888b0d
authored
1 year ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Fix allocation size of client state
parent
a12108c1
No related branches found
No related tags found
No related merge requests found
Pipeline
#5113
failed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sftp/sftp_client.c
+4
-1
4 additions, 1 deletion
src/sftp/sftp_client.c
with
4 additions
and
1 deletion
src/sftp/sftp_client.c
+
4
−
1
View file @
d6888b0d
...
...
@@ -8,6 +8,9 @@
void
sftpc_finish
(
sftpc_state_t
state
)
{
assert
(
state
);
if
(
state
==
NULL
)
return
;
assert
(
state
->
thread
==
pthread_self
());
// TODO: Close all open handles
while
(
!
CloseEvent
(
state
->
recv_event
))
{
...
...
@@ -25,7 +28,7 @@ sftpc_finish(sftpc_state_t state)
sftpc_state_t
sftpc_begin
(
bool
(
*
send_cb
)(
uint8_t
*
buf
,
size_t
len
,
void
*
cb_data
),
void
*
cb_data
)
{
sftpc_state_t
ret
=
(
sftpc_state_t
)
malloc
(
sizeof
(
s
ftpc
_state
_t
));
sftpc_state_t
ret
=
(
sftpc_state_t
)
malloc
(
sizeof
(
s
truct
sftp_client
_state
));
if
(
ret
==
NULL
)
return
NULL
;
ret
->
recv_event
=
CreateEvent
(
NULL
,
TRUE
,
FALSE
,
"sftp_recv"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment