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
fed7e795
Commit
fed7e795
authored
Aug 30, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gnutls: fix flawed logic
parent
b549a2f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
modules/misc/gnutls.c
modules/misc/gnutls.c
+5
-7
No files found.
modules/misc/gnutls.c
View file @
fed7e795
...
...
@@ -198,9 +198,9 @@ static int gnutls_SessionOpen (vlc_tls_t *tls, int type,
goto
error
;
}
#ifdef GNUTLS_ALPN_MAND
if
(
alpn
!=
NULL
)
{
#ifdef GNUTLS_ALPN_MAND
gnutls_datum_t
*
protv
=
NULL
;
unsigned
protc
=
0
;
...
...
@@ -222,10 +222,10 @@ static int gnutls_SessionOpen (vlc_tls_t *tls, int type,
val
=
gnutls_alpn_set_protocols
(
session
,
protv
,
protc
,
0
);
free
(
protv
);
}
#else
VLC_UNUSED
(
alpn
)
;
goto
error
;
#endif
}
gnutls_transport_set_int
(
session
,
fd
);
...
...
@@ -279,9 +279,9 @@ static int gnutls_ContinueHandshake (vlc_tls_t *tls, char **restrict alp)
return
-
1
;
done:
#ifdef GNUTLS_ALPN_MAND
if
(
alp
!=
NULL
)
{
#ifdef GNUTLS_ALPN_MAND
gnutls_datum_t
datum
;
val
=
gnutls_alpn_get_selected_protocol
(
session
,
&
datum
);
...
...
@@ -295,11 +295,9 @@ done:
return
-
1
;
}
else
#endif
*
alp
=
NULL
;
}
#else
VLC_UNUSED
(
alp
);
#endif
return
0
;
}
...
...
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