diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libventi/packet.c | 2 | ||||
-rw-r--r-- | src/libventi/send.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libventi/packet.c b/src/libventi/packet.c index 2c3dcd77..d19d8537 100644 --- a/src/libventi/packet.c +++ b/src/libventi/packet.c @@ -888,7 +888,7 @@ memalloc(int n, int pos) if(n < 0 || n > MaxFragSize) { werrstr(EPacketSize); - return 0; + return nil; } if(n <= SmallMemSize) { lock(&freelist.lk); diff --git a/src/libventi/send.c b/src/libventi/send.c index 70cc8272..2b88818d 100644 --- a/src/libventi/send.c +++ b/src/libventi/send.c @@ -39,7 +39,7 @@ _vtsend(VtConn *z, Packet *p) if(write(z->outfd, ioc.addr, ioc.len) < ioc.len){ vtlog(VtServerLog, "<font size=-1>%T %s:</font> sending packet %p: %r<br>\n", z->addr, p); packetfree(p); - return 0; + return -1; } packetconsume(p, nil, ioc.len); tot += ioc.len; |