Ignore:
Timestamp:
Jun 29, 2011, 7:36:41 AM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update vendor to version 3.5.6

File:
1 edited

Legend:

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

    r414 r587  
    7777                struct notify_change *c;
    7878                size_t namelen;
     79                int    rem = 0;
    7980                uint32 u32_tmp; /* Temp arg to prs_uint32 to avoid
    8081                                 * signed/unsigned issues */
     
    102103
    103104                u32_tmp = (i == num_changes-1) ? 0 : namelen + 12;
     105
     106                /* Align on 4-byte boundary according to MS-CIFS 2.2.7.4.2 */
     107                if ((rem = u32_tmp % 4 ) != 0)
     108                        u32_tmp += 4 - rem;
     109
    104110                if (!prs_uint32("offset", ps, 1, &u32_tmp)) goto fail;
    105111
     
    116122                 */
    117123                prs_set_offset(ps, prs_offset(ps)-2);
     124
     125                if (rem != 0) {
     126                        if (!prs_align_custom(ps, 4)) goto fail;
     127                }
    118128
    119129                TALLOC_FREE(uni_name.buffer);
Note: See TracChangeset for help on using the changeset viewer.