ldap/servers/slapd/ssl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4ae764558fba2b175d71f319e39ddc83dcd20ea1
Author: Noriko Hosoi <nhosoi(a)redhat.com>
Date: Mon Dec 9 09:38:48 2013 -0800
Ticket #605 - support TLS 1.1 - Fixing "Coverity 12415 - Logically dead code"
Description: The return value from SSL_VersionRangeSet was not assigned
to "sslStatus" which was used to evaluate the API worked correctly or not.
https://fedorahosted.org/389/ticket/605
diff --git a/ldap/servers/slapd/ssl.c b/ldap/servers/slapd/ssl.c
index addf6b1..48c3fe9 100644
--- a/ldap/servers/slapd/ssl.c
+++ b/ldap/servers/slapd/ssl.c
@@ -1590,7 +1590,7 @@ slapd_ssl_init2(PRFileDesc **fd, int startTLS)
myNSSVersions.min = NSSVersionMin;
myNSSVersions.max = NSSVersionMax;
restrict_SSLVersionRange(&myNSSVersions, enableSSL3, enableTLS1);
- SSL_VersionRangeSet(pr_sock, &myNSSVersions);
+ sslStatus = SSL_VersionRangeSet(pr_sock, &myNSSVersions);
if (sslStatus == SECSuccess) {
/* Set the restricted value to the cn=encryption entry */
} else {