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
d84a0c51
Commit
d84a0c51
authored
23 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
Cris Bailiff found out that when the SSL session cache was filled, libcurl
would crash. This corrects the problem.
parent
d9a7c7de
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/ssluse.c
+3
-2
3 additions, 2 deletions
lib/ssluse.c
with
3 additions
and
2 deletions
lib/ssluse.c
+
3
−
2
View file @
d84a0c51
...
...
@@ -552,9 +552,9 @@ int Curl_SSL_Close_All(struct SessionHandle *data)
static
int
Store_SSL_Session
(
struct
connectdata
*
conn
)
{
SSL_SESSION
*
ssl_sessionid
;
struct
curl_ssl_session
*
store
;
int
i
;
struct
SessionHandle
*
data
=
conn
->
data
;
/* the mother of all structs */
struct
curl_ssl_session
*
store
=
&
data
->
state
.
session
[
0
];
int
oldest_age
=
data
->
state
.
session
[
0
].
age
;
/* zero if unused */
/* ask OpenSSL, say please */
...
...
@@ -568,7 +568,8 @@ static int Store_SSL_Session(struct connectdata *conn)
the oldest if necessary) */
/* find an empty slot for us, or find the oldest */
for
(
i
=
0
;
(
i
<
data
->
set
.
ssl
.
numsessions
)
&&
data
->
state
.
session
[
i
].
sessionid
;
i
++
)
{
for
(
i
=
1
;
(
i
<
data
->
set
.
ssl
.
numsessions
)
&&
data
->
state
.
session
[
i
].
sessionid
;
i
++
)
{
if
(
data
->
state
.
session
[
i
].
age
<
oldest_age
)
{
oldest_age
=
data
->
state
.
session
[
i
].
age
;
store
=
&
data
->
state
.
session
[
i
];
...
...
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