comparison ui/sslconnection_bare.cpp @ 1268:2efdf2faf4e5

Remove dead variable and fix possible null pointer dereference Problems found by clang static-analyzer
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 26 Sep 2014 19:31:53 +0200
parents 2949f1842955
children
comparison
equal deleted inserted replaced
1267:d9ecf3a83620 1268:2efdf2faf4e5
186 qDebug() << "server certificate has been revoked"; 186 qDebug() << "server certificate has been revoked";
187 if((ret & BADCERT_CN_MISMATCH) != 0) 187 if((ret & BADCERT_CN_MISMATCH) != 0)
188 qDebug() << "CN mismatch"; 188 qDebug() << "CN mismatch";
189 if((ret & BADCERT_NOT_TRUSTED) != 0) 189 if((ret & BADCERT_NOT_TRUSTED) != 0)
190 qDebug() << "self-signed or not signed by a trusted CA"; 190 qDebug() << "self-signed or not signed by a trusted CA";
191 ret = -1;
192 #ifdef RELEASE_BUILD 191 #ifdef RELEASE_BUILD
193 mErrorState = InvalidCertificate; 192 mErrorState = InvalidCertificate;
194 return -1; 193 return -1;
195 #endif 194 #endif
196 } 195 }

http://wald.intevation.org/projects/trustbridge/