1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Bring the ancontrol buffer oflows fixes here too.

Submitted by:	Aaron Campbell <aaron@openbsd.org>
This commit is contained in:
Ollivier Robert 2000-06-18 23:45:17 +00:00
parent dac3275057
commit 4dc93581d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61817

View File

@ -83,7 +83,7 @@ static void wi_getval(iface, wreq)
bzero((char *)&ifr, sizeof(ifr));
strcpy(ifr.ifr_name, iface);
strlcpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name));
ifr.ifr_data = (caddr_t)wreq;
s = socket(AF_INET, SOCK_DGRAM, 0);
@ -108,7 +108,7 @@ static void wi_setval(iface, wreq)
bzero((char *)&ifr, sizeof(ifr));
strcpy(ifr.ifr_name, iface);
strlcpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name));
ifr.ifr_data = (caddr_t)wreq;
s = socket(AF_INET, SOCK_DGRAM, 0);