]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Fix Windows tun setup crash
authorDavid Woodhouse <dwmw2@infradead.org>
Sat, 26 Feb 2022 17:34:26 +0000 (17:34 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 26 Feb 2022 17:34:26 +0000 (17:34 +0000)
commit6a2ffbbcd1c4ef0b689cce3d17154f6d4c2e3bc0
treeeed1060566c9334693aa2dc84fd56c535cea7d96
parent4d22f1dedd45d075f42335fe12af195e24cf3b41
Fix Windows tun setup crash

The intention was to use vpninfo->hostname, by passing it as a parameter
to the create_ifname_w() function. But that function still just uses
vpninfo->ifname unconditionally, ignoring the argument. And causing the
crash in #370.

Fix up some bogus formatting while we're at it. We don't do open braces
on the same line as the function declaration.

Fixes: 48bd28aadd ("Use hostname as Wintun ifname (if ifname not specified)")
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
tun-win32.c