mirror of
https://github.com/yarrick/iodine.git
synced 2025-04-04 05:43:33 +03: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];
|
||||
|
||||
#ifdef DARWIN
|
||||
if (!strncmp(tun_device, "utun", 4)) {
|
||||
if (tun_device != NULL && !strncmp(tun_device, "utun", 4)) {
|
||||
tun_fd = open_utun(tun_device);
|
||||
if (tun_fd >= 0) {
|
||||
return tun_fd;
|
||||
|
|
Loading…
Add table
Reference in a new issue