Summary:ASTERISK-06360: [patch] useadsi is not always initialized
Reporter:Andrew Moise (chops)Labels:
Date Opened:2006-02-19 00:10:11.000-0600Date Closed:2006-02-19 09:58:54.000-0600
Versions:Frequency of
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: Andrew Moise (chops) 2006-02-19 00:12:32.000-0600

Sorry about that -- I was looking at a filtered search page without realizing it, and thought I'd forgotten to submit this bug, so I submitted it twice.  Oops.