See patch.
Regards,
Honza
diff --git a/branches/whitetank/exec/evt.c b/branches/whitetank/exec/evt.c
index 7a5f0d2..6c654fe 100644
--- a/branches/whitetank/exec/evt.c
+++ b/branches/whitetank/exec/evt.c
@@ -2527,6 +2527,7 @@ static void lib_evt_event_subscribe(void *conn, void *message)
unsigned int ret;
int i;
struct libevt_pd *esip;
+ uint32_t ics_channel_handle;
esip = (struct libevt_pd *)openais_conn_private_data_get(conn);
@@ -2540,7 +2541,9 @@ static void lib_evt_event_subscribe(void *conn, void *message)
/*
* look up the channel handle
*/
- ret = hdb_handle_get(&esip->esi_hdb, req->ics_channel_handle, &ptr);
+ ics_channel_handle = req->ics_channel_handle;
+
+ ret = hdb_handle_get(&esip->esi_hdb, ics_channel_handle, &ptr);
if (ret != 0) {
error = SA_AIS_ERR_BAD_HANDLE;
goto subr_done;
@@ -2616,11 +2619,11 @@ static void lib_evt_event_subscribe(void *conn, void *message)
}
}
}
- hdb_handle_put(&esip->esi_hdb, req->ics_channel_handle);
+ hdb_handle_put(&esip->esi_hdb, ics_channel_handle);
return;
subr_put:
- hdb_handle_put(&esip->esi_hdb, req->ics_channel_handle);
+ hdb_handle_put(&esip->esi_hdb, ics_channel_handle);
subr_done:
res.ics_head.size = sizeof(res);
res.ics_head.id = MESSAGE_RES_EVT_SUBSCRIBE;
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais