FFFTPのソースコードです。
Revisión | 391e3074b3447b3a0d5f9153eb82cb87c89dfede (tree) |
---|---|
Tiempo | 2011-10-13 21:15:23 |
Autor | s_kawamoto <s_kawamoto@user...> |
Commiter | s_kawamoto |
Fix bugs of timeout of FTPS negotiation.
@@ -189,7 +189,7 @@ BOOL AttachSSL(SOCKET s) | ||
189 | 189 | while(pSSL_connect(*ppSSL) != 1) |
190 | 190 | { |
191 | 191 | LeaveCriticalSection(&g_OpenSSLLock); |
192 | - if(g_pOpenSSLTimeoutCallback() || timeGetTime() - Time >= g_OpenSSLTimeout) | |
192 | + if(g_pOpenSSLTimeoutCallback() || (g_OpenSSLTimeout > 0 && timeGetTime() - Time >= g_OpenSSLTimeout)) | |
193 | 193 | { |
194 | 194 | DetachSSL(s); |
195 | 195 | r = FALSE; |