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 );
|
theResources->push_back( theResource );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern osl::Mutex aGlobalNeonMutex;
|
||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
// Constructor
|
// Constructor
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
@ -287,12 +289,15 @@ NeonPropFindRequest::NeonPropFindRequest( HttpSession* inSession,
|
||||||
thePropNames[ theIndex ].nspace = NULL;
|
thePropNames[ theIndex ].nspace = NULL;
|
||||||
thePropNames[ theIndex ].name = NULL;
|
thePropNames[ theIndex ].name = NULL;
|
||||||
|
|
||||||
nError = ne_simple_propfind( inSession,
|
{
|
||||||
inPath,
|
osl::Guard< osl::Mutex > theGlobalGuard( aGlobalNeonMutex );
|
||||||
inDepth,
|
nError = ne_simple_propfind( inSession,
|
||||||
thePropNames,
|
inPath,
|
||||||
NPFR_propfind_results,
|
inDepth,
|
||||||
&ioResources );
|
thePropNames,
|
||||||
|
NPFR_propfind_results,
|
||||||
|
&ioResources );
|
||||||
|
}
|
||||||
|
|
||||||
for ( theIndex = 0; theIndex < thePropCount; theIndex ++ )
|
for ( theIndex = 0; theIndex < thePropCount; theIndex ++ )
|
||||||
free( (void *)thePropNames[ theIndex ].name );
|
free( (void *)thePropNames[ theIndex ].name );
|
||||||
|
@ -302,6 +307,7 @@ NeonPropFindRequest::NeonPropFindRequest( HttpSession* inSession,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// ALLPROP
|
// ALLPROP
|
||||||
|
osl::Guard< osl::Mutex > theGlobalGuard( aGlobalNeonMutex );
|
||||||
nError = ne_simple_propfind( inSession,
|
nError = ne_simple_propfind( inSession,
|
||||||
inPath,
|
inPath,
|
||||||
inDepth,
|
inDepth,
|
||||||
|
|
Loading…
Reference in a new issue