[Home]

Summary:ASTERISK-06358: [patch] useadsi is not always initialized
Reporter:Andrew Moise (chops)Labels:
Date Opened:2006-02-18 21:46:03.000-0600Date Closed:2006-02-19 10:28:07.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 2006-02-18-adsi-unset-access.patch
Description:vm_authenticate() calls adsi_begin(), passing a pointer to useadsi, and after that assumes that useadsi will accurately describe the ADSI support.  However, on some early error conditions (like !adsi_available(chan)), adsi_begin() will not set any value for useadsi.

The attached patch sets *useadsi = 0 early in adsi_begin(), so that vm_authenticate() will always get an accurate ADSI status for the channel.
Comments:By: Tilghman Lesher (tilghman) 2006-02-19 10:28:07.000-0600

Committed to 1.2, merged to trunk