Fix error handling wrt. its callers

This commit is contained in:
Ondřej Kuzník 2017-05-18 16:12:06 +01:00 committed by Ondřej Kuzník
parent ee288cfc2d
commit 37a474b508

View file

@ -517,7 +517,7 @@ request_abandon( Connection *c, Operation *op )
{
Operation *request, needle = { .o_client = c };
ber_tag_t tag;
int rc = -1;
int rc = LDAP_SUCCESS;
tag = ber_get_int( op->o_ber, &needle.o_client_msgid );
if ( tag != LDAP_REQ_ABANDON ) {
@ -535,7 +535,6 @@ request_abandon( Connection *c, Operation *op )
operation_abandon( request );
CONNECTION_LOCK_DECREF(c);
rc = LDAP_SUCCESS;
done:
operation_destroy_from_client( op );
return rc;