Resolves: rhbz#668109 ne_simple_propfind can touch gcrypt as well
This commit is contained in:
parent
16163cb3d8
commit
85c2c9a5a2
1 changed files with 12 additions and 6 deletions
|
@ -260,6 +260,8 @@ extern "C" void NPFR_propnames_results( void* userdata,
|
|||
theResources->push_back( theResource );
|
||||
}
|
||||
|
||||
extern osl::Mutex aGlobalNeonMutex;
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
// Constructor
|
||||
// -------------------------------------------------------------------
|
||||
|
@ -287,12 +289,15 @@ NeonPropFindRequest::NeonPropFindRequest( HttpSession* inSession,
|
|||
thePropNames[ theIndex ].nspace = NULL;
|
||||
thePropNames[ theIndex ].name = NULL;
|
||||
|
||||
{
|
||||
osl::Guard< osl::Mutex > theGlobalGuard( aGlobalNeonMutex );
|
||||
nError = ne_simple_propfind( inSession,
|
||||
inPath,
|
||||
inDepth,
|
||||
thePropNames,
|
||||
NPFR_propfind_results,
|
||||
&ioResources );
|
||||
}
|
||||
|
||||
for ( theIndex = 0; theIndex < thePropCount; theIndex ++ )
|
||||
free( (void *)thePropNames[ theIndex ].name );
|
||||
|
@ -302,6 +307,7 @@ NeonPropFindRequest::NeonPropFindRequest( HttpSession* inSession,
|
|||
else
|
||||
{
|
||||
// ALLPROP
|
||||
osl::Guard< osl::Mutex > theGlobalGuard( aGlobalNeonMutex );
|
||||
nError = ne_simple_propfind( inSession,
|
||||
inPath,
|
||||
inDepth,
|
||||
|
|
Loading…
Reference in a new issue