summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-02-10 11:24:33 -0600
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-02-23 23:00:46 +0100
commit70ca8cd0d4f871e95a05ead32117e2646fc40a96 (patch)
treed444a109aba97a43c1ee99d340c10da73ea639f5
parentb88894322e0c354b5298f5cb946e73b9b46f35c4 (diff)
downloadspice-70ca8cd0d4f871e95a05ead32117e2646fc40a96.tar.gz
spice-70ca8cd0d4f871e95a05ead32117e2646fc40a96.tar.xz
spice-70ca8cd0d4f871e95a05ead32117e2646fc40a96.zip
Fix spice-server crash on char device callbacks
We weren't properly setting the 'opaque' pointer to be the RedsState server object. This was only triggering on windows guests.
-rw-r--r--server/reds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/reds.c b/server/reds.c
index 41283be5..4c615323 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -2853,7 +2853,7 @@ static SpiceCharDeviceState *attach_to_red_agent(RedsState *reds, SpiceCharDevic
REDS_TOKENS_TO_SEND,
REDS_NUM_INTERNAL_AGENT_MESSAGES,
&char_dev_state_cbs,
- NULL);
+ reds);
} else {
spice_char_device_state_reset_dev_instance(state->base, sin);
}