From 8f0503fd454618ff6946e763c2c43e6b81ae646e Mon Sep 17 00:00:00 2001 From: Ludwig Krispenz Date: Mon, 23 Jun 2014 14:40:33 +0200 Subject: [PATCH] fix coverity issue 12621 --- ldap/servers/slapd/operation.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ldap/servers/slapd/operation.c b/ldap/servers/slapd/operation.c index 1b45c3f..c31e8bc 100644 --- a/ldap/servers/slapd/operation.c +++ b/ldap/servers/slapd/operation.c @@ -632,8 +632,12 @@ slapi_connection_remove_operation( Slapi_PBlock *pb, Slapi_Connection *conn, Sla for ( tmp = olist; *tmp != NULL && *tmp != op; tmp = &(*tmp)->o_next ) ; /* NULL */ if ( *tmp == NULL ) { - LDAPDebug( LDAP_DEBUG_ANY, "connection_remove_operation: can't find op %d for conn %" NSPRIu64 "\n", - (int)op->o_msgid, conn->c_connid, 0 ); + if (op) { + LDAPDebug( LDAP_DEBUG_ANY, "connection_remove_operation: can't find op %d for conn %" NSPRIu64 "\n", + (int)op->o_msgid, conn->c_connid, 0 ); + } else { + LDAPDebug( LDAP_DEBUG_ANY, "connection_remove_operation: no operation provided\n"); + } } else { *tmp = (*tmp)->o_next; } -- 1.7.11.7