[zaptel-commits] russell: branch 1.4 r2099 - /branches/1.4/ztcfg.c
zaptel-commits at lists.digium.com
zaptel-commits at lists.digium.com
Wed Feb 7 09:51:28 MST 2007
Author: russell
Date: Wed Feb 7 10:51:27 2007
New Revision: 2099
URL: http://svn.digium.com/view/zaptel?view=rev&rev=2099
Log:
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)
Modified:
branches/1.4/ztcfg.c
Modified: branches/1.4/ztcfg.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/ztcfg.c?view=diff&rev=2099&r1=2098&r2=2099
==============================================================================
--- branches/1.4/ztcfg.c (original)
+++ branches/1.4/ztcfg.c Wed Feb 7 10:51:27 2007
@@ -1130,6 +1130,9 @@
int ps;
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");
More information about the zaptel-commits
mailing list