mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
ipv6: ipcm6_cookie initializer
Initialize the cookie in one location to reduce code duplication and
avoid bugs from inconsistent initialization, such as that fixed in
commit 9887cba199 ("ip: limit use of gso_size to udp").
Signed-off-by: Willem de Bruijn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
351782067b
commit
b515430ac9
6 changed files with 25 additions and 18 deletions
|
|
@ -525,9 +525,7 @@ static int l2tp_ip6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
|
|||
fl6.flowi6_mark = sk->sk_mark;
|
||||
fl6.flowi6_uid = sk->sk_uid;
|
||||
|
||||
ipc6.hlimit = -1;
|
||||
ipc6.tclass = -1;
|
||||
ipc6.dontfrag = -1;
|
||||
ipcm6_init(&ipc6);
|
||||
|
||||
if (lsa) {
|
||||
if (addr_len < SIN6_LEN_RFC2133)
|
||||
|
|
|
|||
Loading…
Reference in a new issue