commit | e84dd98d2685112672f60e002e45dfcb4dd2b611 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Wed Apr 24 10:54:02 2013 +0200 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Mon Apr 29 20:44:42 2013 +0200 |
tree | 6c4c526006d8476305f93931258df6c5af5bff8b | |
parent | 7a0010bdd4d8741c591ad40e70798136fee6e18f [diff] |
sysmobts: Avoid a crash when trying to look-up a BTS The nanoBTS code is trying to find a struct gsm_bts based on the ipaccess_gsmnet and the ipaccess_unit data. The pointer is not initialized in the case of a sysmoBTS leading to a classic NULL pointer dereference. Move the feature init into the _init method. This way we can re-use the start code of the nanoBTS. This ensures that the ipaccess_gsmnet pointer is properly initialized and that the signal handlers are installed.