Don't make nlmon and other weird interfaces crash -L option
This commit is contained in:
parent
f6f3a00703
commit
98d3a53ae8
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ static inline bool sockaddr_get_hwaddr(struct sockaddr *sa, uint8_t *hwaddr)
|
|||
{
|
||||
void *src;
|
||||
|
||||
if (sa->sa_family != NMRPFLASH_AF_PACKET) {
|
||||
if (!sa || sa->sa_family != NMRPFLASH_AF_PACKET) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue