ofono/drivers/ifxmodem
Anirudh Gargi 4b44fb3910 gprs: fix seg fault in case of NULL callback
In case of AT callback if callback handler is NULL, check for null
before calling the success macro.

Logs:
ofonod[32496]: src/network.c:current_operator_callback() 0x157ad60, (nil)
ofonod[32496]: src/gprs.c:netreg_status_changed() 0
ofonod[32496]: src/gprs.c:gprs_netreg_update() attach: 0, driver_attached: 1
ofonod[32496]: src/gprs.c:ofono_gprs_detached_notify() /xmm7xxx_0
ofonod[32496]: drivers/ifxmodem/gprs-context.c:ifx_gprs_detach_shutdown()
ofonod[32496]: drivers/ifxmodem/gprs-context.c:ifx_gprs_deactivate_primary() cid 0
ofonod[32496]: src/gprs.c:ofono_gprs_detached_notify() /xmm7xxx_0
ofonod[32496]: src/gprs.c:gprs_attach_callback() /xmm7xxx_0 error = 0
ofonod[32496]: drivers/ifxmodem/gprs-context.c:deactivate_cb() ok 0
ofonod[32496]: Aborting (signal 11) [./../src/ofonod]
ofonod[32496]: ++++++++ backtrace ++++++++
ofonod[32496]: +++++++++++++++++++++++++++
2018-10-01 14:46:35 -05:00
..
audio-settings.c ifxmodem: Remove audio settings mode handling 2012-02-10 10:04:34 +01:00
ctm.c drivers: Update copyright information 2011-10-10 13:39:48 -07:00
gprs-context.c gprs: fix seg fault in case of NULL callback 2018-10-01 14:46:35 -05:00
ifxmodem.c drivers: Update copyright information 2011-10-10 13:39:48 -07:00
ifxmodem.h ifxmodem: support automatic context activation 2017-09-13 10:27:32 -05:00
radio-settings.c ifxmodem: Remove atom if driver fails to init 2012-03-26 16:50:46 -05:00
stk.c drivers: Update copyright information 2011-10-10 13:39:48 -07:00
voicecall.c ifxmodem: Use g_slist_free_full 2016-04-22 15:21:11 -05:00