From: Brian West Date: Thu, 3 Sep 2020 18:07:15 +0000 (-0500) Subject: [mod_valet_parking] Do not crash when exit key is not defined X-Git-Tag: v1.10.7^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8478a523a99aa49444407aca5b15e5831e62df91;p=thirdparty%2Ffreeswitch.git [mod_valet_parking] Do not crash when exit key is not defined --- diff --git a/src/mod/applications/mod_valet_parking/mod_valet_parking.c b/src/mod/applications/mod_valet_parking/mod_valet_parking.c index 1b088ec957..c304cad824 100644 --- a/src/mod/applications/mod_valet_parking/mod_valet_parking.c +++ b/src/mod/applications/mod_valet_parking/mod_valet_parking.c @@ -89,7 +89,7 @@ static switch_status_t valet_on_dtmf(switch_core_session_t *session, void *input switch_channel_t *channel = switch_core_session_get_channel(session); switch_dtmf_t *exit_key_pvt = (switch_dtmf_t *) switch_channel_get_private(channel, "_orbit_exit_key_"); - if (dtmf->digit == exit_key_pvt->digit) { + if (exit_key_pvt && dtmf->digit == exit_key_pvt->digit) { const char *dp; const char *exten; const char *context;