mirror of
https://github.com/yarrick/iodine.git
synced 2025-04-11 04:50:55 +00:00
Merge branch 'nullderef' of https://github.com/jedisct1/iodine
This commit is contained in:
commit
17195eead1
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ open_tun(const char *tun_device)
|
||||||
char tun_name[50];
|
char tun_name[50];
|
||||||
|
|
||||||
#ifdef DARWIN
|
#ifdef DARWIN
|
||||||
if (!strncmp(tun_device, "utun", 4)) {
|
if (tun_device != NULL && !strncmp(tun_device, "utun", 4)) {
|
||||||
tun_fd = open_utun(tun_device);
|
tun_fd = open_utun(tun_device);
|
||||||
if (tun_fd >= 0) {
|
if (tun_fd >= 0) {
|
||||||
return tun_fd;
|
return tun_fd;
|
||||||
|
|
Loading…
Add table
Reference in a new issue