Support This Project

Changeset 2017

Show
Ignore:
Timestamp:
08/14/08 16:47:55 (4 months ago)
Author:
virdiq
Message:

Fix a segfault in do_user_ip that could occur when the backend does not return a valid group struct. Thanks to Bauruine for the backtrace that led to this fix.

Files:

Legend:

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

    r1994 r2017  
    300300  for (i=0; i<user->group_num; i++) { 
    301301    group = GetGroupByID(user->groups[i]); 
    302     if (ip_list_check_ident(group->ip_list, ip, context->ident)==1) 
     302    if (group && ip_list_check_ident(group->ip_list, ip, context->ident)==1) 
    303303      return E_OK; 
    304304  }