summaryrefslogtreecommitdiff
path: root/drivers/dahdi/dahdi-base.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-03-24 15:59:32 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-03-24 15:59:32 +0000
commite0b2ba2d3d6419eaf0e9cc17db2bb41ef6fd8d65 (patch)
tree34472c498ba1d7aa4b1921d43a165730b9569176 /drivers/dahdi/dahdi-base.c
parent76dc25feeedf2a6d3351ea07de1c3a8e6a5b6714 (diff)
Make sure the requested echo canceller name is NULL-terminated.
Make sure that the that the name of the echo canceller requested in the DAHDI ioctl DAHDI_ATTACH_ECHOCAN is NULL-terminated. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6236 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi-base.c')
-rw-r--r--drivers/dahdi/dahdi-base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c
index a1f588d..5c7a042 100644
--- a/drivers/dahdi/dahdi-base.c
+++ b/drivers/dahdi/dahdi-base.c
@@ -3858,6 +3858,7 @@ static int dahdi_ctl_ioctl(struct inode *inode, struct file *file, unsigned int
VALID_CHANNEL(ae.chan);
+ ae.echocan[sizeof(ae.echocan) - 1] = 0;
if (ae.echocan[0]) {
if (!(new = find_echocan(ae.echocan))) {
return -EINVAL;