Ignore:
Timestamp:
Jan 15, 2010, 8:23:30 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.10 (source)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/nsswitch/pam_winbind.c

    r342 r370  
    977977                                       int sid_list_buffer_size)
    978978{
    979         const char* sid_string;
     979        const char* sid_string = NULL;
     980        char *sid_str = NULL;
    980981
    981982        /* lookup name? */
     
    986987                struct wbcDomainSid sid;
    987988                enum wbcSidType type;
    988                 char *sid_str;
    989989
    990990                _pam_log_debug(ctx, LOG_DEBUG,
     
    10031003                }
    10041004
    1005                 wbcFreeMemory(sid_str);
    10061005                sid_string = sid_str;
    10071006        }
     
    10091008        if (!safe_append_string(sid_list_buffer, sid_string,
    10101009                                sid_list_buffer_size)) {
     1010                wbcFreeMemory(sid_str);
    10111011                return false;
    10121012        }
    10131013
     1014        wbcFreeMemory(sid_str);
    10141015        return true;
    10151016}
     
    10531054                                                sid_list_buffer,
    10541055                                                sid_list_buffer_size)) {
    1055                         goto out;
     1056                        /*
     1057                         * If one group name failed, we must not fail
     1058                         * the authentication totally, continue with
     1059                         * the following group names. If user belongs to
     1060                         * one of the valid groups, we must allow it
     1061                         * login. -- BoYang
     1062                         */
     1063
     1064                        _pam_log(ctx, LOG_INFO, "cannot convert group %s to sid, "
     1065                                 "check if group %s is valid group.", current_name,
     1066                                 current_name);
     1067                        _make_remark_format(ctx, PAM_TEXT_INFO, _("Cannot convert group %s "
     1068                                        "to sid, please contact your administrator to see "
     1069                                        "if group %s is valid."), current_name, current_name);
     1070                        SAFE_FREE(current_name);
     1071                        search_location = comma + 1;
     1072                        continue;
    10561073                }
    10571074
     
    10691086                                        sid_list_buffer,
    10701087                                        sid_list_buffer_size)) {
    1071                 goto out;
     1088                _pam_log(ctx, LOG_INFO, "cannot convert group %s to sid, "
     1089                         "check if group %s is valid group.", search_location,
     1090                         search_location);
     1091                _make_remark_format(ctx, PAM_TEXT_INFO, _("Cannot convert group %s "
     1092                                "to sid, please contact your administrator to see "
     1093                                "if group %s is valid."), search_location, search_location);
    10721094        }
    10731095
     
    17631785                wbcFreeMemory(logon.blobs);
    17641786        }
    1765         if (info && info->blobs) {
     1787        if (info && info->blobs && !p_info) {
    17661788                wbcFreeMemory(info->blobs);
    17671789        }
     
    31173139                                }
    31183140
    3119                                 wbcFreeMemory(info);
    3120                                 wbcFreeMemory(policy);
    31213141                        }
     3142
     3143                        if (info && info->blobs) {
     3144                                wbcFreeMemory(info->blobs);
     3145                        }
     3146                        wbcFreeMemory(info);
     3147                        wbcFreeMemory(policy);
    31223148
    31233149                        goto out;
Note: See TracChangeset for help on using the changeset viewer.