Skip to content

Commit

Permalink
More complete fix for bug CORE-2368 : AV after isc_cancel_events if e…
Browse files Browse the repository at this point in the history
…vent was not found
  • Loading branch information
hvlad committed Mar 23, 2009
1 parent 611498b commit b85cdf0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/remote/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,8 @@ static ISC_STATUS cancel_events( rem_port* port, P_EVENT * stuff, PACKET* send)
*
**************************************/
ISC_STATUS_ARRAY status_vector;

success(status_vector);

/* Which database ? */

RDB rdb = port->port_context;
Expand All @@ -1080,10 +1081,7 @@ static ISC_STATUS cancel_events( rem_port* port, P_EVENT * stuff, PACKET* send)
/* If no event found, pretend it was cancelled */

if (!event)
{
success(status_vector);
return port->send_response(send, 0, 0, status_vector);
}

/* cancel the event */

Expand Down

0 comments on commit b85cdf0

Please sign in to comment.