Changeset 8ac048d601e83a6e2b356a3342ddb1cba33b4ebc

Show
Ignore:
Timestamp:
12/01/10 04:42:17 (2 years ago)
Author:
Nedko Arnaudov <nedko@…>
Children:
5bb20eda52dd931fe0e6b78a3dd2820d6a82d3a8
Parents:
0cfdeec2e7ebf3612de07bea5c64d3e256b2b13e
git-author:
Nedko Arnaudov <nedko@arnaudov.name> / 2010-12-01T04:41:58Z+0200
git-committer:
Nedko Arnaudov <nedko@arnaudov.name> / 2010-12-01T04:42:17Z+0200
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • daemon/room_load.c

    rdba04d1 r8ac048d  
    396396      { 
    397397        log_error("Cannot find room link port."); 
    398         context_ptr->port = NULL; 
     398        context_ptr->error = XML_TRUE; 
    399399      } 
    400400