Add a type check to avoid a proxy to skeleton cast to fail
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>
Mon, 6 Aug 2012 11:51:53 +0000 (12:51 +0100)
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>
Mon, 6 Aug 2012 13:11:52 +0000 (14:11 +0100)
commit53d25fc8ddba4de1340cad4885ba9fce880bc3fe
treef2241bdca2688dc1dde85492ffb9b6c8fe5cbf4c
parent9d3c6b7b6e02e9f2c28fb9401fd6dcf6f48053da
Add a type check to avoid a proxy to skeleton cast to fail

We use the "consumer" property of the ShutdownClient class to store a
proxy in the NSC code and a skeleton in the NSM dummy code. When
releasing the consumer in shutdown_client_finalize(), we may therefor
not cast to a ShutdownConsumerSkeleton unconditionally; otherwise
the NSM dummy will segfault when releasing ShutdownClient objects.
common/shutdown-client.c