Ignore:
Timestamp:
Jul 2, 2013, 7:27:06 PM (12 years ago)
Author:
Herwig Bauernfeind
Message:

Samba Server 3.5: Update branch to 3.5.20

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/smbd/service.c

    r736 r773  
    306306 * Find a service entry.
    307307 *
    308  * @param service is modified (to canonical form??)
     308 * @param service_in is modified (to canonical form??)
     309 * and returned in return parameter service.
    309310 **/
    310311
    311 int find_service(fstring service)
     312int find_service(const char *service_in, fstring service)
    312313{
    313314        int iService;
    314315        struct smbd_server_connection *sconn = smbd_server_conn;
    315316
     317        if (!service_in) {
     318                return -1;
     319        }
     320
     321        fstrcpy(service, service_in);
    316322        all_string_sub(service,"\\","/",0);
    317323
     
    400406                        }
    401407
    402                         iService = find_service(defservice);
     408                        iService = find_service(defservice, service);
    403409                        if (iService >= 0) {
    404410                                all_string_sub(service, "_","/",0);
     
    11831189                                        current_user_info.smb_name);
    11841190                                map_username(sconn, unix_username);
    1185                                 snum = find_service(unix_username);
     1191                                snum = find_service(unix_username, unix_username);
    11861192                        }
    11871193                        if (snum != -1) {
     
    12111217        strlower_m(service);
    12121218
    1213         snum = find_service(service);
     1219        snum = find_service(service, service);
    12141220
    12151221        if (snum < 0) {
Note: See TracChangeset for help on using the changeset viewer.