Ignore:
Timestamp:
May 27, 2007, 12:26:26 AM (19 years ago)
Author:
Paul Smedley
Message:

Upgrade source to 3.0.25a

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/nsswitch/wb_client.c

    r1 r39  
    166166        *domain_name = talloc_strdup(mem_ctx, response.data.domain_name);
    167167
    168         *names = TALLOC_ARRAY(mem_ctx, const char *, num_rids);
    169         *types = TALLOC_ARRAY(mem_ctx, enum lsa_SidType, num_rids);
    170 
    171         if ((*names == NULL) || (*types == NULL)) {
    172                 goto fail;
     168        if (num_rids) {
     169                *names = TALLOC_ARRAY(mem_ctx, const char *, num_rids);
     170                *types = TALLOC_ARRAY(mem_ctx, enum lsa_SidType, num_rids);
     171
     172                if ((*names == NULL) || (*types == NULL)) {
     173                        goto fail;
     174                }
     175        } else {
     176                *names = NULL;
     177                *types = NULL;
    173178        }
    174179
Note: See TracChangeset for help on using the changeset viewer.