chiark / gitweb /
server/tun-unet: Fix stupidity in t_create.
[tripe] / server / tun-unet.c
index 3274db1c3d07cdd3c03814568541b57008d4cc38..9a79dd858c365cdcbc47c6096ab73d6334ad54e4 100644 (file)
@@ -127,7 +127,7 @@ static tunnel *t_create(peer *p, char **ifn)
 
   if (ioctl(t->f.fd, UNIOCGINFO, &uni)) {
     a_warn("TUN", "-", "unet", "getinfo-error", "?ERRNO", A_END);
-    return ("<error>");
+    return (0);
   }
   *ifn = xstrdup(uni.uni_ifname);
   T( trace(T_TUNNEL, "tun-unet: attached interface %s to peer `%s'",