1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 19:22:22 -05:00

Fixes from audit

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@882 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-12-10 20:14:23 +00:00
parent 5a7cdb1b12
commit 3ca83d3b2e
2 changed files with 2 additions and 2 deletions

View File

@ -388,7 +388,7 @@ public final class DavGatewayHttpClientFacade {
// do not follow redirects in expired sessions // do not follow redirects in expired sessions
method.setFollowRedirects(followRedirects); method.setFollowRedirects(followRedirects);
int status = httpClient.executeMethod(method); int status = httpClient.executeMethod(method);
if (status == HttpStatus.SC_UNAUTHORIZED & !hasNTLM(httpClient)) { if (status == HttpStatus.SC_UNAUTHORIZED && !hasNTLM(httpClient)) {
method.releaseConnection(); method.releaseConnection();
LOGGER.debug("Received unauthorized at " + method.getURI() + ", retrying with NTLM"); LOGGER.debug("Received unauthorized at " + method.getURI() + ", retrying with NTLM");
addNTLM(httpClient); addNTLM(httpClient);

View File

@ -27,7 +27,7 @@ import java.io.ByteArrayInputStream;
/** /**
* Add the SunPKCS11 Provider. * Add the SunPKCS11 Provider.
*/ */
public class SunPKCS11ProviderHandler { public final class SunPKCS11ProviderHandler {
private SunPKCS11ProviderHandler() { private SunPKCS11ProviderHandler() {
} }