Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HardenedBSD
HardenedBSD
Commits
3d0e4200
Commit
3d0e4200
authored
May 16, 2018
by
Dag-Erling Smørgrav
Browse files
Import upstream commit cfb1d9b, which fixes tunnel forwarding.
parent
c8a2bf14
Changes
1
Hide whitespace changes
Inline
Side-by-side
openbsd-compat/port-net.c
View file @
3d0e4200
...
...
@@ -185,7 +185,7 @@ sys_tun_open(int tun, int mode, char **ifname)
else
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
;
return
(
fd
);
...
...
@@ -272,7 +272,7 @@ sys_tun_open(int tun, int mode, char **ifname)
goto
failed
;
}
if
(
ifname
!=
NULL
&&
(
*
ifname
=
strdup
(
ifr
.
ifr_name
)))
if
(
ifname
!=
NULL
&&
(
*
ifname
=
strdup
(
ifr
.
ifr_name
))
==
NULL
)
goto
failed
;
close
(
sock
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment