Fix null pointer de-ref

This commit is contained in:
Hamish Coleman 2023-06-20 23:11:35 +01:00
parent b5a8210efd
commit e8c7457b80

View File

@ -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);
/* Get MAC address from tap device->device_name */