|
@@ -956,6 +956,15 @@ saEvtChannelOpenAsync(SaEvtHandleT evtHandle,
|
|
|
goto chan_open_done;
|
|
goto chan_open_done;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
|
+ * Make sure that an open channel callback has been
|
|
|
|
|
+ * registered before allowing the open to continue.
|
|
|
|
|
+ */
|
|
|
|
|
+ if (!evti->ei_callback.saEvtChannelOpenCallback) {
|
|
|
|
|
+ error = SA_AIS_ERR_INIT;
|
|
|
|
|
+ goto chan_open_put;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/*
|
|
/*
|
|
|
* create a handle for this open channel
|
|
* create a handle for this open channel
|
|
|
*/
|
|
*/
|
|
@@ -1709,6 +1718,15 @@ saEvtEventSubscribe(
|
|
|
goto subscribe_put1;
|
|
goto subscribe_put1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
|
+ * Make sure that a deliver callback has been
|
|
|
|
|
+ * registered before allowing the subscribe to continue.
|
|
|
|
|
+ */
|
|
|
|
|
+ if (!evti->ei_callback.saEvtEventDeliverCallback) {
|
|
|
|
|
+ error = SA_AIS_ERR_INIT;
|
|
|
|
|
+ goto subscribe_put2;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/*
|
|
/*
|
|
|
* See if we can subscribe to this channel
|
|
* See if we can subscribe to this channel
|
|
|
*/
|
|
*/
|