Hi,

@@ -688,7 +688,10 @@ x_check_status(int status,
>          }
>  #elif defined(_WIN32)
>          /* get possible driver error from TAP-Windows driver */
> -        extended_msg = tap_win_getinfo(tt, &gc);
> +        if (!tt->wintun)
> +        {
> +            extended_msg = tap_win_getinfo(tt, &gc);
> +        }
>


What if we make error.c device type agnostic and move that check into
tun.c, tap_win_getinfo():

    const char *
    tap_win_getinfo(const struct tuntap *tt, struct gc_arena *gc)
    {
        if (tuntap_defined(tt) && !tuntap_is_wintun(tt))
            {
                /* get debug log from tap-windows6 */

-Lev
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to