[asterisk-dev] Asterisk instability - resolved - res_features.c

Dov Bigio dovb at terra.com.br
Mon Apr 17 06:38:58 MST 2006


Hello, I made the following changes on my res_features.c to resolve an instability I had with atxfer...
(Actually, I wasn't the one who did it cause I don't know C, but this worked, so I am forwarding to you so that you can confirm it makes sense and include it in the Subversion system)
/usr/src/asterisk-1.2.6/res/res_features.c




+++ res_features.c      2006-04-12 18:25:23.000000000 -0300

@@ -1439,7 +1439,11 @@

                        if (res >= FEATURE_RETURN_PASSDIGITS) {
                                res = 0;
                        } else {
-                               ast_frfree(f);
+                               if (f) {
+                                       ast_frfree(f);
+                               }
                                break;
                        }
                        hasfeatures = !ast_strlen_zero(chan_featurecode) || !ast_strlen_zero(peer_featurecode);


Thank you
Dov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20060417/81e858c8/attachment.htm


More information about the asterisk-dev mailing list