mirror of
https://github.com/yarrick/iodine.git
synced 2025-04-10 04:21:01 +00:00
Merge jedisct1 nullderef
This commit is contained in:
commit
082acc055e
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