diff --git a/security/manager/ssl/src/nsNSSCertificate.cpp b/security/manager/ssl/src/nsNSSCertificate.cpp index 50a93644414c..03e29a712db2 100644 --- a/security/manager/ssl/src/nsNSSCertificate.cpp +++ b/security/manager/ssl/src/nsNSSCertificate.cpp @@ -1635,10 +1635,10 @@ char* nsNSSCertificate::defaultServerNickname(CERTCertificate* cert) conflict = SEC_CertNicknameConflict(nickname, &cert->derSubject, cert->dbhandle); - PR_Free(nickname); if (!conflict) { break; } + PR_Free(nickname); count++; } PR_FREEIF(servername);