diff options
| -rw-r--r-- | sys/src/libventi/rpc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/src/libventi/rpc.c b/sys/src/libventi/rpc.c index 5a820a995..f2ddd91a6 100644 --- a/sys/src/libventi/rpc.c +++ b/sys/src/libventi/rpc.c @@ -37,6 +37,13 @@ _vtrpc(VtConn *z, Packet *p, VtFcall *tx) uchar tag, buf[2], *top; Rwait *r, *rr; + + if(z == nil){ + werrstr("not connected"); + packetfree(p); + return nil; + } + /* must malloc because stack could be private */ r = vtmallocz(sizeof(Rwait)); |
