Date: Thu, 4 Oct 2007 09:45:42 +0000 (UTC) From: Andrew Thompson <thompsa@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/ifconfig ifconfig.c Message-ID: <200710040945.l949jg1W094471@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
thompsa 2007-10-04 09:45:41 UTC
FreeBSD src repository
Modified files:
sbin/ifconfig ifconfig.c
Log:
Fix the module name matching to the drivers present in the kernel. Previously
it would return true on a partial match where it would think the edsc module
was already present by having a positive match on 'ed'. This changes it so
that it compares the full string including the nul terminators.
This also fixes a buffer overflow in the ifkind variable where the length of
the interface name in *argv wasnt checked for size.
Reviewed by: brooks
Approved by: re (gnn)
Revision Changes Path
1.134 +14 -7 src/sbin/ifconfig/ifconfig.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710040945.l949jg1W094471>
