View | Details | Raw Unified
Collapse All | Expand All

(-) openvpn-2.1_rc6.orig/tun.c (-13 lines)
 Lines 1220-1238    Link Here 
{
{
  if (tt)
  if (tt)
    {
    {
#ifdef CONFIG_FEATURE_IPROUTE
	char command_line[256];
	/*
	 * Flush IP configuration for the device
	 */
	openvpn_snprintf (command_line, sizeof (command_line),
			  "%s addr flush dev %s",
			  iproute_path,
			  tt->actual_name
			  );
	msg (M_INFO, "%s", command_line);
	system_check (command_line, NULL, S_FATAL, "Linux ip flush failed");
#endif
      close_tun_generic (tt);
      close_tun_generic (tt);
      free (tt);
      free (tt);
    }
    }