Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
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
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
c331c73e
Commit
c331c73e
authored
16 years ago
by
Michal Marek
Browse files
Options
Downloads
Patches
Plain Diff
- Fixed a potential data loss in Curl_client_write() when the transfer is
paused.
parent
d1f063c6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES
+4
-0
4 additions, 0 deletions
CHANGES
lib/sendf.c
+4
-4
4 additions, 4 deletions
lib/sendf.c
with
8 additions
and
4 deletions
CHANGES
+
4
−
0
View file @
c331c73e
...
...
@@ -6,6 +6,10 @@
Changelog
Michal Marek (13 Nov 2008)
- Fixed a potential data loss in Curl_client_write() when the transfer is
paused.
Daniel Stenberg (11 Nov 2008)
- Rainer Canavan filed bug #2255627
(http://curl.haxx.se/bug/view.cgi?id=2255627) which pointed out that a
...
...
This diff is collapsed.
Click to expand it.
lib/sendf.c
+
4
−
4
View file @
c331c73e
...
...
@@ -425,7 +425,7 @@ static CURLcode pausewrite(struct SessionHandle *data,
}
/* client_write() sends data to the write callback(s)
/*
Curl_
client_write() sends data to the write callback(s)
The bit pattern defines to what "streams" to write to. Body and/or header.
The defines are in sendf.h of course.
...
...
@@ -442,6 +442,9 @@ CURLcode Curl_client_write(struct connectdata *conn,
struct
SessionHandle
*
data
=
conn
->
data
;
size_t
wrote
;
if
(
0
==
len
)
len
=
strlen
(
ptr
);
/* If reading is actually paused, we're forced to append this chunk of data
to the already held data, but only if it is the same type as otherwise it
can't work and it'll return error instead. */
...
...
@@ -469,9 +472,6 @@ CURLcode Curl_client_write(struct connectdata *conn,
return
CURLE_OK
;
}
if
(
0
==
len
)
len
=
strlen
(
ptr
);
if
(
type
&
CLIENTWRITE_BODY
)
{
if
((
conn
->
protocol
&
PROT_FTP
)
&&
conn
->
proto
.
ftpc
.
transfertype
==
'A'
)
{
#ifdef CURL_DOES_CONVERSIONS
...
...
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