mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
pf: don't assert on address family in pf_addrcpy()
This gets called (through PF_ACPY()) on user supplied input, so we can't assume that the address family must be AF_INET or AF_INET6. Reported-by: syzbot+14dec0c55b8f512e271c@syzkaller.appspotmail.com Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
394a9a5b1c
commit
80b64ef0a1
1 changed files with 0 additions and 2 deletions
|
|
@ -811,8 +811,6 @@ pf_addrcpy(struct pf_addr *dst, const struct pf_addr *src, sa_family_t af)
|
|||
case AF_INET6:
|
||||
memcpy(&dst->v6, &src->v6, sizeof(dst->v6));
|
||||
break;
|
||||
default:
|
||||
unhandled_af(af);
|
||||
}
|
||||
}
|
||||
#endif /* INET6 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue