bug fixes

This commit is contained in:
rsc 2005-01-18 20:15:18 +00:00
parent aa1d0b1bb0
commit 361e279c59
5 changed files with 16 additions and 11 deletions

View file

@ -8,10 +8,8 @@ vtsrvhello(VtConn *z)
VtFcall tx, rx;
Packet *p;
if((p = vtrecv(z)) == nil){
werrstr("unexpected eof on venti connection");
if((p = vtrecv(z)) == nil)
return -1;
}
if(vtfcallunpack(&tx, p) < 0){
packetfree(p);