warp-vpn

point to point VPN implementation
git clone git://git.2f30.org/warp-vpn.git
Log | Files | Refs | README

commit 108742310a2606b3cc39511856716aa11976d14b
parent e16058b3c99e12748825795ad42f5af9802acdec
Author: sin <sin@2f30.org>
Date:   Tue, 12 Apr 2016 14:35:42 +0100

discard should return pktpartial

Diffstat:
netpkt.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/netpkt.c b/netpkt.c @@ -168,7 +168,7 @@ netread(int fd, unsigned char *pt, size_t ptlen, size_t *outlen) return PKTFAILED; } else if (n < 0) { if (errno == EWOULDBLOCK) - break; + return PKTPARTIAL; return PKTFAILED; } }