Here is a patch to fix a problem where the code could check
queue->open_flags when queue is NULL. Correct thing to do is check
error first, since if error is SA_AIS_OK we are assured the queue is
not NULL.
Index: services/msg.c
===================================================================
--- services/msg.c (revision 1847)
+++ services/msg.c (working copy)
@@ -3444,7 +3444,7 @@
&res_lib_msg_messagesend,
sizeof (struct res_lib_msg_messagesend));
- if ((queue->open_flags & SA_MSG_QUEUE_RECEIVE_CALLBACK) &&
(error == SA_AIS_OK))
+ if ((error == SA_AIS_OK) && (queue->open_flags &
SA_MSG_QUEUE_RECEIVE_CALLBACK))
{
res_lib_msg_messagereceived_callback.header.size =
sizeof (struct
res_lib_msg_messagereceived_callback);
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais