mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 16:41:11 +02:00
Fix null pointer de-ref
This commit is contained in:
parent
b5a8210efd
commit
e8c7457b80
|
@ -277,7 +277,7 @@ int open_wintap(struct tuntap_dev *device,
|
||||||
|
|
||||||
/* ************************************** */
|
/* ************************************** */
|
||||||
|
|
||||||
if(device_mac[0])
|
if(device_mac && device_mac[0])
|
||||||
set_interface_mac(device, device_mac);
|
set_interface_mac(device, device_mac);
|
||||||
|
|
||||||
/* Get MAC address from tap device->device_name */
|
/* Get MAC address from tap device->device_name */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user