Ignore:
Timestamp:
May 12, 2014, 8:58:38 PM (11 years ago)
Author:
Silvan Scherrer
Message:

Samba 3.6: updated vendor to latest version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/smbd/nttrans.c

    r746 r860  
    537537                                req->flags2 & FLAGS2_DFS_PATHNAMES,
    538538                                fname,
    539                                 0,
     539                                (create_disposition == FILE_CREATE)
     540                                        ? UCF_CREATING_FILE : 0,
    540541                                NULL,
    541542                                &smb_fname);
     
    886887        /* Ensure we have at least one thing set. */
    887888        if ((security_info_sent & (SECINFO_OWNER|SECINFO_GROUP|SECINFO_DACL|SECINFO_SACL)) == 0) {
    888                 if (security_info_sent & SECINFO_LABEL) {
    889                         /* Only consider SECINFO_LABEL if no other
    890                            bits are set. Just like W2K3 we don't
    891                            store this. */
    892                         return NT_STATUS_OK;
    893                 }
    894                 return NT_STATUS_INVALID_PARAMETER;
     889                /* Just like W2K3 */
     890                return NT_STATUS_OK;
    895891        }
    896892
     
    990986                        break;
    991987                }
     988
     989                /* Integer wrap protection for the increment. */
     990                if (offset + next_offset < offset) {
     991                        break;
     992                }
     993
    992994                offset += next_offset;
     995
     996                /* Integer wrap protection for while loop. */
     997                if (offset + 4 < offset) {
     998                        break;
     999                }
     1000
    9931001        }
    9941002
     
    11591167                                req->flags2 & FLAGS2_DFS_PATHNAMES,
    11601168                                fname,
    1161                                 0,
     1169                                (create_disposition == FILE_CREATE)
     1170                                        ? UCF_CREATING_FILE : 0,
    11621171                                NULL,
    11631172                                &smb_fname);
Note: See TracChangeset for help on using the changeset viewer.