]> gitweb @ CieloNegro.org - pkgsrc-firefox3.git/blob - patches/patch-at
60d1bd5fdaa2b65ff16ad9bd54134b48aa0a4685
[pkgsrc-firefox3.git] / patches / patch-at
1 $NetBSD$
2
3 --- security/manager/ssl/src/nsSSLThread.cpp.orig       2008-04-12 13:47:24.000000000 +0900
4 +++ security/manager/ssl/src/nsSSLThread.cpp
5 @@ -916,7 +916,7 @@ void nsSSLThread::Run(void)
6      // remember whether we'll write or read
7      nsSSLSocketThreadData::ssl_state busy_socket_ssl_state;
8    
9 -    {
10 +    if (ssl_thread_singleton) {
11        // In this scope we need mutex protection,
12        // as we find out what needs to be done.
13        
14 @@ -1078,7 +1078,7 @@ void nsSSLThread::Run(void)
15      // avoid setting event repeatedly
16      PRBool needToSetPollableEvent = PR_FALSE;
17  
18 -    {
19 +    if (ssl_thread_singleton) {
20        nsAutoLock threadLock(ssl_thread_singleton->mMutex);
21        
22        mBusySocket->mThreadData->mSSLState = busy_socket_ssl_state;
23 @@ -1102,7 +1102,7 @@ void nsSSLThread::Run(void)
24      }
25    }
26  
27 -  {
28 +  if (ssl_thread_singleton) {
29      nsAutoLock threadLock(ssl_thread_singleton->mMutex);
30      if (mBusySocket)
31      {