Commit 3cd17e7d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Avoid dummy "unknown option dccp-service" error

Signed-off-by: default avatarRémi Denis-Courmont <rem@videolan.org>
parent 9b978809
...@@ -125,12 +125,15 @@ int net_Socket (vlc_object_t *p_this, int family, int socktype, ...@@ -125,12 +125,15 @@ int net_Socket (vlc_object_t *p_this, int family, int socktype,
#endif #endif
#ifdef DCCP_SOCKOPT_SERVICE #ifdef DCCP_SOCKOPT_SERVICE
char *dccps = var_CreateGetNonEmptyString (p_this, "dccp-service"); if (socktype == SOL_DCCP)
if (dccps != NULL)
{ {
setsockopt (fd, SOL_DCCP, DCCP_SOCKOPT_SERVICE, dccps, char *dccps = var_CreateGetNonEmptyString (p_this, "dccp-service");
(strlen (dccps) + 3) & ~3); if (dccps != NULL)
free (dccps); {
setsockopt (fd, SOL_DCCP, DCCP_SOCKOPT_SERVICE, dccps,
(strlen (dccps) + 3) & ~3);
free (dccps);
}
} }
#endif #endif
......
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