]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Changed ASSERT(0) to a more descriptive fatal error in tun.c
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Mon, 21 Jan 2008 19:59:58 +0000 (19:59 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Mon, 21 Jan 2008 19:59:58 +0000 (19:59 +0000)
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2641 e7ae566f-a301-0410-adde-c780ea21d3b5

tun.c

diff --git a/tun.c b/tun.c
index 3a740bff95027074a3d196b288b9b1a4b60814db..7bbcea622bb23409ee07b9d2d3a6c0597295d862 100644 (file)
--- a/tun.c
+++ b/tun.c
@@ -377,7 +377,7 @@ is_tun_p2p (const struct tuntap *tt)
   else if (tt->type == DEV_TYPE_TUN)
     tun = true;
   else
-    ASSERT (0); /* should have been caught in init_tun ... JYFIXME -- was hit */
+    msg (M_FATAL, "Error: problem with tun vs. tap setting"); /* JYFIXME -- needs to be caught earlier, in init_tun? */
 
   return tun;
 }