ACK.

On Tue, Jun 02, 2009 at 05:34:06PM +0200, Jan Friesse wrote:
> ---
>  trunk/lib/lck.c |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)
> 
> diff --git a/trunk/lib/lck.c b/trunk/lib/lck.c
> index 1bb5420..cecf2a9 100644
> --- a/trunk/lib/lck.c
> +++ b/trunk/lib/lck.c
> @@ -475,6 +475,11 @@ saLckResourceOpen (
>               goto error_exit;
>       }
>  
> +     if ((resourceFlags & (~SA_LCK_RESOURCE_CREATE)) != 0) {
> +             error = SA_AIS_ERR_BAD_FLAGS;
> +             goto error_exit;
> +     }
> +
>       error = hdb_error_to_sa (hdb_handle_get (&lckHandleDatabase,
>               lckHandle, (void *)&lckInstance));
>       if (error != SA_AIS_OK) {
> @@ -580,6 +585,11 @@ saLckResourceOpenAsync (
>               goto error_exit;
>       }
>  
> +     if ((resourceFlags & (~SA_LCK_RESOURCE_CREATE)) != 0) {
> +             error = SA_AIS_ERR_BAD_FLAGS;
> +             goto error_exit;
> +     }
> +
>       error = hdb_error_to_sa (hdb_handle_get (&lckHandleDatabase,
>               lckHandle, (void *)&lckInstance));
>       if (error != SA_AIS_OK) {
> -- 
> 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