]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
dccp: fix return value for sequence-invalid packets
authorSamuel Jero <sj323707@ohio.edu>
Thu, 30 Dec 2010 11:15:16 +0000 (12:15 +0100)
committerGerrit Renker <gerrit@erg.abdn.ac.uk>
Fri, 7 Jan 2011 11:22:43 +0000 (12:22 +0100)
commit2cf5be93d1b704f342ad423a49f0e78d73939e66
tree5d0e0435c71e775134d0e2374c97db78a46d3198
parent4e3dbdb1392a83bd21a6ff8f6bc785495058d37c
dccp: fix return value for sequence-invalid packets

Currently dccp_check_seqno returns 0 (indicating a valid packet) if the
acknowledgment number is out of bounds and the sync that RFC 4340 mandates at
this point is currently being rate-limited. This function should return -1,
indicating an invalid packet.

Signed-off-by: Samuel Jero <sj323707@ohio.edu>
Acked-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
net/dccp/input.c