diff options
-rw-r--r-- | ldap/servers/slapd/operation.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ldap/servers/slapd/operation.c b/ldap/servers/slapd/operation.c index ed8cbd88..85a19a45 100644 --- a/ldap/servers/slapd/operation.c +++ b/ldap/servers/slapd/operation.c @@ -55,9 +55,11 @@ slapi_op_abandoned( Slapi_PBlock *pb ) { int op_status; - op_status = pb->pb_op->o_status; - - return( op_status == SLAPI_OP_STATUS_ABANDONED ); + if (pb && pb->pb_op) { + op_status = pb->pb_op->o_status; + return( op_status == SLAPI_OP_STATUS_ABANDONED ); + } + return 0; } void |