Support This Project

Changeset 2019

Show
Ignore:
Timestamp:
08/14/08 17:50:52 (4 months ago)
Author:
virdiq
Message:

Fix incorrect assumption that GetGroupByID will return a valid group struct.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libwzd-core/wzd_vfs.c

    r1994 r2019  
    211211      for (i=0; i<user->group_num; i++) { 
    212212        group = GetGroupByID(user->groups[i]); 
    213         if (strcasecmp(token,group->groupname)==0) { free(buffer); return (negate) ? 0 : 1; } 
     213        if (group && strcasecmp(token,group->groupname)==0) { free(buffer); return (negate) ? 0 : 1; } 
    214214      } 
    215215      break;