libwbclient: Fix some pointless macro calls
authorVolker Lendecke <vl@samba.org>
Sat, 10 Apr 2010 13:28:42 +0000 (15:28 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 19 Apr 2010 12:27:17 +0000 (14:27 +0200)
nsswitch/libwbclient/wbc_sid.c

index 20f70b5b9197ecef37c3c3b30477951e30ad64e4..bbe6827bb6cef5c30a382c19f6c1f68bca75ca71 100644 (file)
@@ -511,7 +511,7 @@ wbcErr wbcGetSidAliases(const struct wbcDomainSid *dom_sid,
 
        if (!dom_sid) {
                wbc_status = WBC_ERR_INVALID_PARAM;
-               BAIL_ON_WBC_ERROR(wbc_status);
+               goto done;
        }
 
        wbc_status = wbcSidToString(dom_sid, &sid_string);
@@ -527,7 +527,7 @@ wbcErr wbcGetSidAliases(const struct wbcDomainSid *dom_sid,
        extra_data = (char *)malloc(buflen);
        if (!extra_data) {
                wbc_status = WBC_ERR_NO_MEMORY;
-               BAIL_ON_WBC_ERROR(wbc_status);
+               goto done;
        }
 
        /* Build the sid list */
@@ -568,7 +568,7 @@ wbcErr wbcGetSidAliases(const struct wbcDomainSid *dom_sid,
        if (response.data.num_entries &&
            !response.extra_data.data) {
                wbc_status = WBC_ERR_INVALID_RESPONSE;
-               BAIL_ON_WBC_ERROR(wbc_status);
+               goto done;
        }
 
        rids = talloc_array(NULL, uint32_t,