From ca6908125357b3c270f6f013b0999b8c46513ed7 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 15 Oct 2007 15:40:45 +0000 Subject: [PATCH] Ensure the buffer passed to ast_canmatch_extension() is properly initialized so that it is null terminated. (issue #10977) Reported by: dimas Patches: pbxdundi.patch uploaded by dimas (license 88) - small mods by me git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85556 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- pbx/pbx_dundi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index 21bb4e0fdb..0b8a681754 100644 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -578,8 +578,8 @@ static int dundi_lookup_local(struct dundi_result *dr, struct dundi_mapping *map } else { /* No answers... Find the fewest number of digits from the number for which we have no answer. */ - char tmp[AST_MAX_EXTENSION]; - for (x=0;x