From: Mark Wooding Date: Thu, 5 Jul 2007 10:02:00 +0000 (+0100) Subject: server/tun-unet: Fix stupidity in t_create. X-Git-Tag: 1.0.0pre8~82 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/commitdiff_plain/dfc1ab4f3326bf8295ac8dca5c4821d57ef417e8 server/tun-unet: Fix stupidity in t_create. Obviously I never watched this build carefully enough. --- diff --git a/server/tun-unet.c b/server/tun-unet.c index 3274db1c..9a79dd85 100644 --- a/server/tun-unet.c +++ b/server/tun-unet.c @@ -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 (""); + return (0); } *ifn = xstrdup(uni.uni_ifname); T( trace(T_TUNNEL, "tun-unet: attached interface %s to peer `%s'",