Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
if (tun_fd < 0) {
/* If the error on /dev/tun is ENOENT, that's boring.
Use the error we got on /dev/net/tun instead */
- if (errno != -ENOENT)
+ if (errno != ENOENT)
tunerr = errno;
vpn_progress(vpninfo, PRG_ERR,
<ul>
<li><b>OpenConnect HEAD</b>
<ul>
+ <li>Print correct error when <tt>/dev/net/tun</tt> cannot be opened.</li>
<li>Fix <tt>openconnect.pc</tt> pkg-config file not to require <tt>zlib.pc</tt> on systems which lack it (like RHEL5).</li>
</ul><br/>
</li>