mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +00:00
Ensure that the chanspy datastore is fully initialized.
This patch resolved some random crash issues observed by a user on a BSD system (closes issue #14111) Reported by: ys Patches: app_chanspy.c.diff uploaded by ys (license 281) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@165889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -513,7 +513,7 @@ static int common_exec(struct ast_channel *chan, const struct ast_flags *flags,
|
|||||||
char *ptr;
|
char *ptr;
|
||||||
int num;
|
int num;
|
||||||
int num_spyed_upon = 1;
|
int num_spyed_upon = 1;
|
||||||
struct chanspy_ds chanspy_ds;
|
struct chanspy_ds chanspy_ds = { 0, };
|
||||||
|
|
||||||
ast_mutex_init(&chanspy_ds.lock);
|
ast_mutex_init(&chanspy_ds.lock);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user