Version 0.1.9 from FTP
[asterisk/asterisk.git] / translate.c
index f6b0f2c..7884360 100755 (executable)
@@ -108,6 +108,7 @@ struct ast_trans_pvt *ast_translator_build_path(int dest, int source)
                                if (!tmp->state) {
                                        free(tmp);
                                        tmp = NULL;
                                if (!tmp->state) {
                                        free(tmp);
                                        tmp = NULL;
+                                       return NULL;
                                }
                                /* Set the root, if it doesn't exist yet... */
                                if (!tmpr)
                                }
                                /* Set the root, if it doesn't exist yet... */
                                if (!tmpr)