]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_skinny: fix potential NPE CID: 1223252
authorNathan Neulinger <nneul@neulinger.org>
Tue, 5 Aug 2014 16:39:17 +0000 (11:39 -0500)
committerNathan Neulinger <nneul@neulinger.org>
Tue, 5 Aug 2014 16:39:17 +0000 (11:39 -0500)
src/mod/endpoints/mod_skinny/mod_skinny.c

index 4c7443cb23700595245a6537bfbe2ce20008420c..a3970dd5c0df9e91937a91e249a6ae47e29f8395 100644 (file)
@@ -773,13 +773,14 @@ switch_status_t channel_on_routing(switch_core_session_t *session)
                                        helper.listener = listener;
                                        helper.line_instance = atoi(switch_channel_get_variable(channel, "skinny_line_instance"));
                                        skinny_session_walk_lines(tech_pvt->profile, switch_core_session_get_uuid(session), channel_on_routing_callback, &helper);
+
+                                       /* clear digit timeout time */
+                                       listener->digit_timeout_time = 0;
                                } else {
                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Could not find listener %s:%s for Channel %s\n",
                                                        switch_channel_get_variable(channel, "skinny_device_name"), switch_channel_get_variable(channel, "skinny_device_instance"),
                                                        switch_channel_get_name(channel));
                                }
-                               /* clear digit timeout time */
-                               listener->digit_timeout_time = 0;
 
                                /* Future bridge should go straight */
                                switch_set_flag_locked(tech_pvt, TFLAG_FORCE_ROUTE);