Changeset 887


Ignore:
Timestamp:
Jun 11, 2015, 11:20:04 AM (10 years ago)
Author:
Yuri Dario
Message:

Fix return code check from samba library, fixes crash in EAs handling when not supported by server.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/src/smbwrp.c

    r885 r887  
    10571057                return maperror(EINVAL);
    10581058        }
    1059         if (!cli_set_ea_path(cli, fname, name, value, size))
     1059        if (!NT_STATUS_IS_OK(cli_set_ea_path(cli, fname, name, value, size)))
    10601060        {
    10611061                return os2cli_errno(cli);
     
    10731073                return maperror(EINVAL);
    10741074        }
    1075         if (!cli_set_ea_fnum(cli, file->fd, name, value, size))
     1075        if (!NT_STATUS_IS_OK(cli_set_ea_fnum(cli, file->fd, name, value, size)))
    10761076        {
    10771077                return os2cli_errno(cli);
     
    11111111        pfealist->cbList = 0;
    11121112
    1113         if (!cli_get_ea_list_path(cli, fname, mem_ctx, &num_eas, &ea_list))
     1113        if (!NT_STATUS_IS_OK(cli_get_ea_list_path(cli, fname, mem_ctx, &num_eas, &ea_list)))
    11141114        {
    11151115                debuglocal(4,"ea_get_file list failed - %s\n", cli_errstr(cli));
Note: See TracChangeset for help on using the changeset viewer.