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
590f0358
Commit
590f0358
authored
17 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
- Anatoli Tubman found and fixed a crash with Negotiate authentication used on
a re-used connection where both requests used Negotiate.
parent
115446be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
CHANGES
+4
-0
4 additions, 0 deletions
CHANGES
RELEASE-NOTES
+3
-1
3 additions, 1 deletion
RELEASE-NOTES
TODO-RELEASE
+0
-2
0 additions, 2 deletions
TODO-RELEASE
lib/http.c
+8
-0
8 additions, 0 deletions
lib/http.c
lib/http_negotiate.c
+2
-3
2 additions, 3 deletions
lib/http_negotiate.c
with
17 additions
and
6 deletions
CHANGES
+
4
−
0
View file @
590f0358
...
...
@@ -6,6 +6,10 @@
Changelog
Daniel S (1 Mar 2008)
- Anatoli Tubman found and fixed a crash with Negotiate authentication used on
a re-used connection where both requests used Negotiate.
Guenter Knauf (26 Feb 2008)
- Kaspar Brand provided a patch to support server name indication (RFC 4366).
...
...
This diff is collapsed.
Click to expand it.
RELEASE-NOTES
+
3
−
1
View file @
590f0358
...
...
@@ -32,6 +32,7 @@ This release includes the following bugfixes:
o test case 405 failures with GnuTLS builds
o crash when connection cache size is 1 and Curl_do() failed
o GnuTLS-built libcurl can now be forced to prefer SSLv3
o crash when doing Negotiate again on a re-used connection
This release includes the following known bugs:
...
...
@@ -50,6 +51,7 @@ advice from friends like these:
Michal Marek, Dmitry Kurochkin, Niklas Angebrand, Günter Knauf, Yang Tse,
Dan Fandrich, Mike Hommey, Pooyan McSporran, Jerome Muffat-Meridol,
Kaspar Brand, Gautam Kachroo, Zmey Petroff, Georg Lippitsch, Sam Listopad
Kaspar Brand, Gautam Kachroo, Zmey Petroff, Georg Lippitsch, Sam Listopad,
Anatoli Tubman
Thanks! (and sorry if I forgot to mention someone)
This diff is collapsed.
Click to expand it.
TODO-RELEASE
+
0
−
2
View file @
590f0358
...
...
@@ -6,8 +6,6 @@ To be addressed before 7.18.1 (planned release: April 2008)
123 - Mike Protts' SFTP resume download
124 - Anatoli Tubman's fix for a Negotiate: crash
125 - Michal Marek's typechecker-gcc work
126 -
This diff is collapsed.
Click to expand it.
lib/http.c
+
8
−
0
View file @
590f0358
...
...
@@ -2358,6 +2358,14 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
te
);
/*
* Free userpwd now --- cannot reuse this for Negotiate and possibly NTLM
* with basic and digest, it will be freed anyway by the next request
*/
Curl_safefree
(
conn
->
allocptr
.
userpwd
);
conn
->
allocptr
.
userpwd
=
NULL
;
if
(
result
)
return
result
;
...
...
This diff is collapsed.
Click to expand it.
lib/http_negotiate.c
+
2
−
3
View file @
590f0358
...
...
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 200
7
, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 1998 - 200
8
, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
...
...
@@ -255,7 +255,6 @@ CURLcode Curl_output_negotiate(struct connectdata *conn, bool proxy)
{
struct
negotiatedata
*
neg_ctx
=
proxy
?&
conn
->
data
->
state
.
proxyneg
:
&
conn
->
data
->
state
.
negotiate
;
OM_uint32
minor_status
;
char
*
encoded
=
NULL
;
int
len
;
...
...
@@ -309,7 +308,7 @@ CURLcode Curl_output_negotiate(struct connectdata *conn, bool proxy)
aprintf
(
"%sAuthorization: %s %s
\r\n
"
,
proxy
?
"Proxy-"
:
""
,
neg_ctx
->
protocol
,
encoded
);
free
(
encoded
);
gss_release_buffer
(
&
minor_status
,
&
neg_ctx
->
output_token
);
Curl_cleanup_negotiate
(
conn
->
data
);
return
(
conn
->
allocptr
.
userpwd
==
NULL
)
?
CURLE_OUT_OF_MEMORY
:
CURLE_OK
;
}
...
...
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