aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/proto.c')
-rw-r--r--net/dccp/proto.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/net/dccp/proto.c b/net/dccp/proto.c
index 8a6b2a9e4581..7b30c12147c2 100644
--- a/net/dccp/proto.c
+++ b/net/dccp/proto.c
@@ -254,7 +254,9 @@ int dccp_setsockopt(struct sock *sk, int level, int optname,
254 int val; 254 int val;
255 255
256 if (level != SOL_DCCP) 256 if (level != SOL_DCCP)
257 return ip_setsockopt(sk, level, optname, optval, optlen); 257 return inet_csk(sk)->icsk_af_ops->setsockopt(sk, level,
258 optname, optval,
259 optlen);
258 260
259 if (optlen < sizeof(int)) 261 if (optlen < sizeof(int))
260 return -EINVAL; 262 return -EINVAL;
@@ -320,8 +322,9 @@ int dccp_getsockopt(struct sock *sk, int level, int optname,
320 int val, len; 322 int val, len;
321 323
322 if (level != SOL_DCCP) 324 if (level != SOL_DCCP)
323 return ip_getsockopt(sk, level, optname, optval, optlen); 325 return inet_csk(sk)->icsk_af_ops->getsockopt(sk, level,
324 326 optname, optval,
327 optlen);
325 if (get_user(len, optlen)) 328 if (get_user(len, optlen))
326 return -EFAULT; 329 return -EFAULT;
327 330