Bugzilla – Attachment 3140 Details for
Bug 2855
Opening tun devices fails in OpenSSH v7.7
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix strdup failure tests
bz2855.diff (text/plain), 711 bytes, created by
Damien Miller
on 2018-04-11 08:48:33 AEST
(
hide
)
Description:
fix strdup failure tests
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2018-04-11 08:48:33 AEST
Size:
711 bytes
patch
obsolete
>diff --git a/openbsd-compat/port-net.c b/openbsd-compat/port-net.c >index 7050629c..bb535626 100644 >--- a/openbsd-compat/port-net.c >+++ b/openbsd-compat/port-net.c >@@ -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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 2855
: 3140