chiark / gitweb /
server/tun-unet: Fix stupidity in t_create.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 5 Jul 2007 10:02:00 +0000 (11:02 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 5 Jul 2007 10:02:00 +0000 (11:02 +0100)
Obviously I never watched this build carefully enough.

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'",