diff options
author | russell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-02-07 16:55:37 +0000 |
---|---|---|
committer | russell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-02-07 16:55:37 +0000 |
commit | e80b3ae333f6a0e81e353e21d96157099eba9b38 (patch) | |
tree | d0614e2da6e6f92e61a1314c34e1e51587566b80 /ztcfg.c | |
parent | 2dde04d898693c9e87a1bf962fe4b8b3c971fea7 (diff) |
Merged revisions 2099 via svnmerge from
https://origsvn.digium.com/svn/zaptel/branches/1.4
........
r2099 | russell | 2007-02-07 10:51:27 -0600 (Wed, 07 Feb 2007) | 4 lines
In case the ZT_GETVERSION ioctl fails, ensure that the buffers are initialized
to "Unknown" so that we don't try to print uninitialized string buffers.
(issue #8992, Oron Peled, tzafrir)
........
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2100 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'ztcfg.c')
-rw-r--r-- | ztcfg.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1131,6 +1131,9 @@ static void printconfig(int fd) int configs=0; struct zt_versioninfo vi; + strcpy(vi.version, "Unknown"); + strcpy(vi.echo_canceller, "Unknown"); + if (ioctl(fd, ZT_GETVERSION, &vi)) error("Unable to read Zaptel version information.\n"); |