Don't crash when the user feeds us nonesense in the form:
ifconfig IF ether WHATEVER -alias PR: 42544 Submitted by: Mike Makonnen <makonnen@pacbell.net>
This commit is contained in:
parent
99253b64fb
commit
b6fcb4fec3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104337
@ -965,6 +965,7 @@ void
|
||||
notealias(const char *addr, int param, int s, const struct afswtch *afp)
|
||||
{
|
||||
if (setaddr && doalias == 0 && param < 0)
|
||||
if (afp->af_addreq != NULL && afp->af_ridreq != NULL)
|
||||
bcopy((caddr_t)rqtosa(af_addreq),
|
||||
(caddr_t)rqtosa(af_ridreq),
|
||||
rqtosa(af_addreq)->sa_len);
|
||||
|
Loading…
Reference in New Issue
Block a user