tcp_wrapper: Make sure that the buf has more than 1byte, before calling fgets()
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 17 Mar 2009 11:46:52 +0000 (19:46 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 17 Mar 2009 11:46:52 +0000 (19:46 +0800)
commitf604ab72a14592610b3886c1966659986b33f5fc
treefed8d1d7e2635ee58c44c7a2ebac50b4ce289c32
parent4d8952930b39a11831fc14b5da0e3e11d25e8721
tcp_wrapper: Make sure that the buf has more than 1byte, before calling fgets()

FreeBSD-PR: kern/132705
Obtained-from: OpenBSD
contrib/tcp_wrappers/misc.c