ldap/servers/slapd/connection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a4daf1a0a65f796878b40b8ebc572082a1101f3b
Author: Mark Reynolds <mreynolds(a)redhat.com>
Date: Thu Aug 1 15:05:16 2013 -0400
Ticket47426 - Coverity issue with last commit(move compute_idletimeout out of
handle_pr_read_ready)
I had added a NULL check trying to avoid a coverity error, but pb->pb_conn can not
be
NULL when it gets to this code. Removed NULL check.
https://fedorahosted.org/389/ticket/47426
Reviewed by: ?
diff --git a/ldap/servers/slapd/connection.c b/ldap/servers/slapd/connection.c
index 6431874..f5fa51b 100644
--- a/ldap/servers/slapd/connection.c
+++ b/ldap/servers/slapd/connection.c
@@ -2326,7 +2326,7 @@ connection_threadmain()
in connection_activity when the conn is added to the
work queue, setup_pr_read_pds won't add the connection prfd
to the poll list */
- if(pb->pb_conn && pb->pb_conn->c_opscompleted == 0){
+ if(pb->pb_conn->c_opscompleted == 0){
/*
* We have a new connection, set the anonymous reslimit idletimeout
* if applicable.