mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-25 03:12:10 +00:00
Fix tunnel forwarding broken in 7.7p1
bz2855, ok dtucker@
This commit is contained in:
parent
afa6e79b76
commit
cfb1d9bc76
@ -185,7 +185,7 @@ sys_tun_open(int tun, int mode, char **ifname)
|
|||||||
else
|
else
|
||||||
debug("%s: %s mode %d fd %d", __func__, ifr.ifr_name, mode, fd);
|
debug("%s: %s mode %d fd %d", __func__, ifr.ifr_name, mode, fd);
|
||||||
|
|
||||||
if (ifname != NULL && (*ifname = strdup(ifr.ifr_name)))
|
if (ifname != NULL && (*ifname = strdup(ifr.ifr_name)) == NULL)
|
||||||
goto failed;
|
goto failed;
|
||||||
|
|
||||||
return (fd);
|
return (fd);
|
||||||
@ -272,7 +272,7 @@ sys_tun_open(int tun, int mode, char **ifname)
|
|||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ifname != NULL && (*ifname = strdup(ifr.ifr_name)))
|
if (ifname != NULL && (*ifname = strdup(ifr.ifr_name)) == NULL)
|
||||||
goto failed;
|
goto failed;
|
||||||
|
|
||||||
close(sock);
|
close(sock);
|
||||||
|
Loading…
Reference in New Issue
Block a user