9pserve: delete from correct hash slot (fix infinite loop)

This commit is contained in:
Russ Cox 2007-08-28 08:45:27 -04:00
parent db1cda12ae
commit ec9247088b

View file

@ -542,7 +542,7 @@ connthread(void *arg)
assert(mm == m); assert(mm == m);
msgput(m); /* got from recvp */ msgput(m); /* got from recvp */
msgput(m); /* got from msgnew */ msgput(m); /* got from msgnew */
if(delhash(c->tag, om->tag, om) == 0) if(delhash(c->tag, om->ctag, om) == 0)
msgput(om); /* got from hash table */ msgput(om); /* got from hash table */
msgput(om); /* got from msgincref */ msgput(om); /* got from msgincref */
} }