]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dhclient: Fix a logic bug remove_protocol().
authorMark Johnston <markj@FreeBSD.org>
Thu, 4 Jun 2020 16:24:13 +0000 (16:24 +0000)
committerMark Johnston <markj@FreeBSD.org>
Thu, 4 Jun 2020 16:24:13 +0000 (16:24 +0000)
commit0006082054f43672b447efd90460ebaeea647815
tree1c3a796e19b2f49dea47c059d4485f4ad637195d
parente9ee2675cbe9975bed225ba4111d2183aaee98da
dhclient: Fix a logic bug remove_protocol().

A logic bug in remove_protocol() meant that it would remove (leak) all
structures in the list preceding the one intended for removal.

PR: 245971
Submitted by: joost@jodocus.org (original version)
MFC after: 1 week
sbin/dhclient/dispatch.c