From fe5b6f0e9c2a6c57e66b87f6babbddc2db8b96a5 Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Mon, 6 Aug 2012 14:48:40 +0100 Subject: Use a proper error code when unable to handle an unregister request Send NSM_ERROR_STATUS_ERROR rather than -1 back to the caller when an unregister request could not be handled successfully. --- nsm-dummy/nsm-consumer-service.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nsm-dummy/nsm-consumer-service.c b/nsm-dummy/nsm-consumer-service.c index 1272758..0cae168 100644 --- a/nsm-dummy/nsm-consumer-service.c +++ b/nsm-dummy/nsm-consumer-service.c @@ -412,7 +412,8 @@ nsm_consumer_service_handle_unregister_shutdown_client (NSMConsumer *o else { /* notify the caller that we could not handle the unregister request properly */ - nsm_consumer_complete_un_register_shutdown_client (object, invocation, -1); + nsm_consumer_complete_un_register_shutdown_client (object, invocation, + NSM_ERROR_STATUS_ERROR); } return TRUE; -- cgit v1.2.1