Commit c04e7b41 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

gnutls: remove tautology / dead code

parent 08c15c3f
......@@ -200,7 +200,6 @@ static int gnutls_SessionOpen (vlc_tls_t *tls, int type,
if (alpn != NULL)
{
#ifdef GNUTLS_ALPN_MAND
gnutls_datum_t *protv = NULL;
unsigned protc = 0;
......@@ -222,9 +221,6 @@ static int gnutls_SessionOpen (vlc_tls_t *tls, int type,
val = gnutls_alpn_set_protocols (session, protv, protc, 0);
free (protv);
#else
goto error;
#endif
}
gnutls_transport_set_int (session, fd);
......@@ -281,7 +277,6 @@ static int gnutls_ContinueHandshake (vlc_tls_t *tls, char **restrict alp)
done:
if (alp != NULL)
{
#ifdef GNUTLS_ALPN_MAND
gnutls_datum_t datum;
val = gnutls_alpn_get_selected_protocol (session, &datum);
......@@ -295,7 +290,6 @@ done:
return -1;
}
else
#endif
*alp = NULL;
}
return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment