diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-03-24 15:59:32 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2009-03-24 15:59:32 +0000 |
commit | 2531708a5ef29d9a5ce1e17806d9576e8cd77889 (patch) | |
tree | 34472c498ba1d7aa4b1921d43a165730b9569176 /drivers/dahdi | |
parent | cabf760c20efd11eecdb4975826deab7a34899ed (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')
-rw-r--r-- | drivers/dahdi/dahdi-base.c | 1 |
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; |