]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rtadvd(8): Fix use-after-close in cm_handler_client
authorcem <cem@FreeBSD.org>
Thu, 12 May 2016 05:12:24 +0000 (05:12 +0000)
committercem <cem@FreeBSD.org>
Thu, 12 May 2016 05:12:24 +0000 (05:12 +0000)
commit3571021d227752c84e8467a6742a88dd30204fd0
tree6ccdfc83b502dd4ad21458a2616f14c1a2f855b7
parent5f28b4bf85db3547f4e18351426519ea90c664c6
rtadvd(8): Fix use-after-close in cm_handler_client

cm_send() closes 'fd' on error.  In that case, bail out early without trying to
recv from or close 'fd' again.

Reported by: Coverity
CID: 1006078
Sponsored by: EMC / Isilon Storage Division
usr.sbin/rtadvd/control_client.c