Ignore:
Timestamp:
May 26, 2009, 9:44:50 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/nsswitch/libwbclient/wbc_sid.c

    r141 r228  
    4141        int i;
    4242        char *tmp = NULL;
    43         TALLOC_CTX *ctx = NULL;
    4443
    4544        if (!sid) {
     
    4746                BAIL_ON_WBC_ERROR(wbc_status);
    4847        }
    49 
    50         ctx = talloc_init("wbcSidToString");
    51         BAIL_ON_PTR_ERROR(ctx, wbc_status);
    5248
    5349        id_auth = sid->id_auth[5] +
     
    5652                (sid->id_auth[2] << 24);
    5753
    58         tmp = talloc_asprintf(ctx, "S-%d-%d", sid->sid_rev_num, id_auth);
     54        tmp = talloc_asprintf(NULL, "S-%d-%d", sid->sid_rev_num, id_auth);
    5955        BAIL_ON_PTR_ERROR(tmp, wbc_status);
    6056
     
    6763        }
    6864
    69         *sid_string=talloc_strdup(NULL, tmp);
    70         BAIL_ON_PTR_ERROR((*sid_string), wbc_status);
     65        *sid_string = tmp;
     66        tmp = NULL;
    7167
    7268        wbc_status = WBC_ERR_SUCCESS;
    7369
    7470done:
    75         talloc_free(ctx);
     71        talloc_free(tmp);
    7672
    7773        return wbc_status;
Note: See TracChangeset for help on using the changeset viewer.