]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: review ospf_check_auth()
authorDenis Ovsienko <infrastation@yandex.ru>
Mon, 30 Jan 2012 12:07:18 +0000 (16:07 +0400)
committerDavid Lamparter <equinox@diac24.net>
Mon, 12 Mar 2012 10:05:19 +0000 (11:05 +0100)
commite52591481ed64e4cf9f26a76ad682ed7e6b451e7
tree738a2ba31eb42b6d5d61fd61bad772a73c5cd82e
parent75c8eabbb5d3dc8aa21b61e8700ab939ce272f5c
ospfd: review ospf_check_auth()

1. The only purpose of "ibuf" argument was to get stream size, which
was always equal to OSPF_MAX_PACKET_SIZE + 1, exactly as initialized
in ospf_new().

2. Fix the packet size check condition, which was incorrect for very
large packets, at least in theory.
ospfd/ospf_packet.c