Ack.

On Mon, May 11, 2009 at 05:52:10PM +0200, Jan Friesse wrote:
> ---
>  trunk/lib/msg.c |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)
> 
> diff --git a/trunk/lib/msg.c b/trunk/lib/msg.c
> index 2c688f9..56ac05a 100644
> --- a/trunk/lib/msg.c
> +++ b/trunk/lib/msg.c
> @@ -385,6 +385,11 @@ saMsgQueueOpen (
>               goto error_exit;
>       }
>  
> +     if ((openFlags & (~SA_MSG_QUEUE_CREATE) & 
> (~SA_MSG_QUEUE_RECEIVE_CALLBACK) & (~SA_MSG_QUEUE_EMPTY)) != 0) {
> +             error = SA_AIS_ERR_BAD_FLAGS;
> +             goto error_exit;
> +     }
> +
>       if ((!(openFlags & SA_MSG_QUEUE_CREATE)) && creationAttributes != NULL) 
> {
>               error = SA_AIS_ERR_INVALID_PARAM;
>               goto error_exit;
> @@ -516,6 +521,11 @@ saMsgQueueOpenAsync (
>               goto error_exit;
>       }
>  
> +     if ((openFlags & (~SA_MSG_QUEUE_CREATE) & 
> (~SA_MSG_QUEUE_RECEIVE_CALLBACK) & (~SA_MSG_QUEUE_EMPTY)) != 0) {
> +             error = SA_AIS_ERR_BAD_FLAGS;
> +             goto error_exit;
> +     }
> +
>       if ((!(openFlags & SA_MSG_QUEUE_CREATE)) && creationAttributes != NULL) 
> {
>               error = SA_AIS_ERR_INVALID_PARAM;
>               goto error_exit;
> -- 
> 1.5.5.6
> 
> _______________________________________________
> Openais mailing list
> [email protected]
> https://lists.linux-foundation.org/mailman/listinfo/openais
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to