In saMsgQueueOpen and saMsgQueueOpenAsync, fix goto statement to jump
to error_exit instead of error_put.

Also fixed up some tabs.

Ryan

Index: lib/msg.c
===================================================================
--- lib/msg.c   (revision 2022)
+++ lib/msg.c   (working copy)
@@ -419,13 +419,13 @@
        }
 
        if (openFlags & SA_MSG_QUEUE_CREATE) {
-           if (creationAttributes == NULL) {
-               error = SA_AIS_ERR_INVALID_PARAM;
-               goto error_put;
-           }
+               if (creationAttributes == NULL) {
+                       error = SA_AIS_ERR_INVALID_PARAM;
+                       goto error_exit;
+               }
 
-           if ((creationAttributes->creationFlags != 0) &&
-               (creationAttributes->creationFlags != SA_MSG_QUEUE_PERSISTENT)) 
{
+               if ((creationAttributes->creationFlags != 0) &&
+                   (creationAttributes->creationFlags != 
SA_MSG_QUEUE_PERSISTENT)) {
                        error = SA_AIS_ERR_BAD_FLAGS;
                        goto error_exit;
                }
@@ -559,13 +559,13 @@
        }
 
        if (openFlags & SA_MSG_QUEUE_CREATE) {
-           if (creationAttributes == NULL) {
-               error = SA_AIS_ERR_INVALID_PARAM;
-               goto error_put;
-           }
+               if (creationAttributes == NULL) {
+                       error = SA_AIS_ERR_INVALID_PARAM;
+                       goto error_exit;
+               }
 
-           if ((creationAttributes->creationFlags != 0) &&
-               (creationAttributes->creationFlags != SA_MSG_QUEUE_PERSISTENT)) 
{
+               if ((creationAttributes->creationFlags != 0) &&
+                   (creationAttributes->creationFlags != 
SA_MSG_QUEUE_PERSISTENT)) {
                        error = SA_AIS_ERR_BAD_FLAGS;
                        goto error_exit;
                }
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to