ladishd: don't crash when room link port is not found
commit8ac048d601e83a6e2b356a3342ddb1cba33b4ebc
authorNedko Arnaudov <nedko@arnaudov.name>
Wed, 1 Dec 2010 02:41:58 +0000 (1 04:41 +0200)
committerNedko Arnaudov <nedko@arnaudov.name>
Wed, 1 Dec 2010 02:42:17 +0000 (1 04:42 +0200)
tree3cffd789b35c369b653b25577a1975bd1b03b449
parent0cfdeec2e7ebf3612de07bea5c64d3e256b2b13e
ladishd: don't crash when room link port is not found

User can attempt to load a project into room with fewer ports than the
room where project was saved. This was causing ASSERT:

Wed Dec  1 04:36:45 2010: ERROR: callback_elstart: Cannot find room link port.
Wed Dec  1 04:36:45 2010: ERROR: callback_elend: ASSERT(context_ptr->port != NULL) failed. function callback_elend in ../daemon/room_load.c: 652

This changeset fixes the ASSERT by failing the project load.
daemon/room_load.c