Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
28273d56
Commit
28273d56
authored
Oct 05, 2008
by
Rémi Denis-Courmont
Committed by
Derk-Jan Hartman
Oct 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle error (?) from config_GetInt (CID#180)
(cherry picked from commit
37b0e5a2
)
parent
1d80eeb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/misc/gnutls.c
modules/misc/gnutls.c
+4
-1
No files found.
modules/misc/gnutls.c
View file @
28273d56
...
...
@@ -966,7 +966,8 @@ gnutls_ServerSessionPrepare( tls_server_t *p_server )
/* Session resumption support */
i_val
=
config_GetInt
(
p_server
,
"gnutls-cache-timeout"
);
gnutls_db_set_cache_expiration
(
session
,
i_val
);
if
(
i_val
>=
0
)
gnutls_db_set_cache_expiration
(
session
,
i_val
);
gnutls_db_set_retrieve_function
(
session
,
cb_fetch
);
gnutls_db_set_remove_function
(
session
,
cb_delete
);
gnutls_db_set_store_function
(
session
,
cb_store
);
...
...
@@ -1066,6 +1067,8 @@ static int OpenServer (vlc_object_t *obj)
return
VLC_ENOMEM
;
p_sys
->
i_cache_size
=
config_GetInt
(
obj
,
"gnutls-cache-size"
);
if
(
p_sys
->
i_cache_size
==
-
1
)
/* Duh, config subsystem exploded?! */
p_sys
->
i_cache_size
=
0
;
p_sys
->
p_cache
=
calloc
(
p_sys
->
i_cache_size
,
sizeof
(
struct
saved_session_t
));
if
(
p_sys
->
p_cache
==
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