Ignore:
Timestamp:
Sep 30, 2007, 3:42:50 AM (18 years ago)
Author:
Paul Smedley
Message:

Update trunk to 3.2.0pre1

File:
1 edited

Legend:

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

    r39 r77  
    88   
    99   This library is free software; you can redistribute it and/or
    10    modify it under the terms of the GNU Library General Public
     10   modify it under the terms of the GNU Lesser General Public
    1111   License as published by the Free Software Foundation; either
    12    version 2 of the License, or (at your option) any later version.
     12   version 3 of the License, or (at your option) any later version.
    1313   
    1414   This library is distributed in the hope that it will be useful,
     
    1717   Library General Public License for more details.
    1818   
    19    You should have received a copy of the GNU Library General Public
    20    License along with this library; if not, write to the
    21    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    22    Boston, MA  02111-1307, USA.   
     19   You should have received a copy of the GNU Lesser General Public License
     20   along with this program.  If not, see <http://www.gnu.org/licenses/>.
    2321*/
    2422
     
    148146        }
    149147
    150         if ((num_rids != 0) && (ridlist == NULL)) {
     148        if (ridlist == NULL) {
    151149                return False;
    152150        }
     
    166164        *domain_name = talloc_strdup(mem_ctx, response.data.domain_name);
    167165
    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;
     166        *names = TALLOC_ARRAY(mem_ctx, const char *, num_rids);
     167        *types = TALLOC_ARRAY(mem_ctx, enum lsa_SidType, num_rids);
     168
     169        if ((*names == NULL) || (*types == NULL)) {
     170                goto fail;
    178171        }
    179172
Note: See TracChangeset for help on using the changeset viewer.