ref: 72e77938e3cb9434751a7dc7474dd76c3715327c
parent: 536605787ce88b3260ee23ffea89b753693022b9
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Fri Jan 25 09:19:18 EST 2013
libventi: handle nil connection in rpc as error instead of crashing (from sources)
--- a/sys/src/libventi/rpc.c
+++ b/sys/src/libventi/rpc.c
@@ -37,6 +37,13 @@
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));
--
⑨