[asterisk-bugs] [Asterisk 0007991]: [patch] missing locking in zt_unregister
noreply at bugs.digium.com
noreply at bugs.digium.com
Sat Jun 7 12:06:50 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=7991
======================================================================
Reported By: tzafrir
Assigned To: mattf
======================================================================
Project: Asterisk
Issue ID: 7991
Category: Core/General
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: closed
Asterisk Version: I did not set the version :(
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 1470
Disclaimer on File?: Yes
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 09-20-2006 04:17 CDT
Last Modified: 06-07-2008 12:06 CDT
======================================================================
Summary: [patch] missing locking in zt_unregister
Description:
The following snippet is from the end of zt_unregister:
if (master == span)
master = NULL;
for (x=1;x<ZT_MAX_SPANS;x++) {
if (spans[x]) {
maxspans = x+1;
if (!master)
master = spans[x];
}
}
It gives temporary values tha are invalid to both master and maxspans .
The values of those variables is used iv various places elsewhere.
======================================================================
----------------------------------------------------------------------
svnbot - 06-07-08 12:06
----------------------------------------------------------------------
Repository: dahdi
Revision: 1608
U branches/1.2/zaptel.c
------------------------------------------------------------------------
r1608 | mattf | 2008-06-07 12:06:49 -0500 (Sat, 07 Jun 2008) | 2 lines
Fix for http://bugs.digium.com/view.php?id=7991.
------------------------------------------------------------------------
http://svn.digium.com/view/dahdi?view=rev&revision=1608
Issue History
Date Modified Username Field Change
======================================================================
06-07-08 12:06 svnbot Checkin
06-07-08 12:06 svnbot Note Added: 0088196
======================================================================
More information about the asterisk-bugs
mailing list