
Instead malloc() some memory and copy the sockaddr returned there. Fix a bug where after a blocked lock gets granted, the grant message would be sent to the wrong machine (or possibly to a completely bogus address). While there, add a NULL check for the return value of another malloc().