From f1d490bac29b47dc6ea7799f1faeaf1563cd04eb Mon Sep 17 00:00:00 2001 From: tilghman Date: Tue, 2 Dec 2008 00:57:31 +0000 Subject: Merged revisions 160208 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r160208 | tilghman | 2008-12-01 18:37:21 -0600 (Mon, 01 Dec 2008) | 10 lines Merged revisions 160207 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r160207 | tilghman | 2008-12-01 18:25:16 -0600 (Mon, 01 Dec 2008) | 3 lines Ensure that Asterisk builds with --enable-dev-mode, even on the latest gcc and glibc. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@160228 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_features.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'channels') diff --git a/channels/chan_features.c b/channels/chan_features.c index 65146f463..d6c2f0aa5 100644 --- a/channels/chan_features.c +++ b/channels/chan_features.c @@ -451,7 +451,11 @@ static struct ast_channel *features_new(struct feature_pvt *p, int state, int in for (x=1;x<4;x++) { if (b2) ast_free(b2); - asprintf(&b2, "%s/%s-%d", p->tech, p->dest, x); + if (asprintf(&b2, "%s/%s-%d", p->tech, p->dest, x) < 0) { + ast_log(LOG_WARNING, "Unable to create channel name: %s\n", strerror(errno)); + b2 = NULL; + continue; + } for (y=0;y<3;y++) { if (y == index) continue; -- cgit v1.2.3