Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jul 1999 03:51:00 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        John-Mark Gurney <jmg@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/net if_tun.c 
Message-ID:  <199907240251.DAA03865@keep.lan.Awfulhak.org>
In-Reply-To: Your message of "Fri, 23 Jul 1999 13:08:29 PDT." <199907232008.NAA91250@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> jmg         1999/07/23 13:08:28 PDT
> 
>   Modified files:
>     sys/net              if_tun.c 
>   Log:
>   fix a problem w/ zero byte writes to the tunnel device.  It would bypass
>   the loop and not set an error, so we would then try to access an invalid
>   mbuf...
>   
>   PR:		12780
>   Submitted by:	bright@rush.net aka zb^3
>   
>   a new record in length a pr was open... only about a half hour...
>   
>   Revision  Changes    Path
>   1.61      +1 -1      src/sys/net/if_tun.c

I don't think I agree that writing 0 bytes should result in EIO, 
perhaps EINVAL would be more apt ?

-- 
Brian <brian@Awfulhak.org>                        <brian@FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour !          <brian@FreeBSD.org.uk>




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907240251.DAA03865>