diff --git a/include/maxscale/router.h b/include/maxscale/router.h index 85625ae39..1a403d312 100644 --- a/include/maxscale/router.h +++ b/include/maxscale/router.h @@ -83,7 +83,7 @@ typedef struct router_object error_action_t action, bool* succp); uint64_t (*getCapabilities)(void); - void (*destroyInstance)(SERVICE *service); + void (*destroyInstance)(ROUTER *instance); } ROUTER_OBJECT; /** diff --git a/server/core/service.c b/server/core/service.c index a8050ff91..785d03f40 100644 --- a/server/core/service.c +++ b/server/core/service.c @@ -1831,7 +1831,7 @@ void service_shutdown() /* Call destroyInstance hook for routers */ if (svc->router->destroyInstance) { - svc->router->destroyInstance(svc); + svc->router->destroyInstance(svc->router_instance); } svc = svc->next; }