1
0
Fork 0
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:
frekky 2016-12-09 09:44:09 +08:00
commit 082acc055e

View file

@ -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;