From c0ae4a6a23c5bcf6157497eaf2410383964d8882 Mon Sep 17 00:00:00 2001 From: Ismo Puustinen Date: Fri, 12 Apr 2013 10:09:21 +0300 Subject: [PATCH] resource-asm: remember to register ASM clients to client classes. --- src/plugins/plugin-resource-asm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/plugin-resource-asm.c b/src/plugins/plugin-resource-asm.c index 0407a16..33efb93 100644 --- a/src/plugins/plugin-resource-asm.c +++ b/src/plugins/plugin-resource-asm.c @@ -843,6 +843,9 @@ static void remove_asm_client_from_class(client_class_t *client_class, static void update_asm_client_states(client_class_t *client_class, resource_set_data_t *d) { + if (!client_class || !d) + return; + /* asm_client just made a request -- see if we can fulfill it without * querying resource library */ @@ -1038,6 +1041,7 @@ static asm_to_lib_t *process_msg(lib_to_asm_t *msg, asm_data_t *ctx) } else { /* do the merging */ + d->client_class = client_class; mrp_list_append(&client_class->asm_clients, &d->hook); } -- 2.7.4