Patch says it all.

Regards,
  Honza




diff --git a/trunk/lib/msg.c b/trunk/lib/msg.c
index 571399d..6fed532 100644
--- a/trunk/lib/msg.c
+++ b/trunk/lib/msg.c
@@ -499,9 +499,14 @@ saMsgQueueOpenAsync (
 		goto error_exit;
 	}
 
+	if ((openFlags & SA_MSG_QUEUE_CREATE) &&
+	    (creationAttributes == NULL)) {
+		error = SA_AIS_ERR_INVALID_PARAM;
+		goto error_put;
+	}
 	if ((openFlags & SA_MSG_QUEUE_RECEIVE_CALLBACK) &&
 	    (msgInstance->callbacks.saMsgMessageReceivedCallback == NULL)) {
-		error = SA_AIS_ERR_INVALID_PARAM;
+		error = SA_AIS_ERR_INIT;
 		goto error_put;
 	}
 
_______________________________________________
Openais mailing list
Openais@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to