Changeset 587 for vendor/current/source3/smbd/notify.c
- Timestamp:
- Jun 29, 2011, 7:36:41 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/smbd/notify.c
r414 r587 77 77 struct notify_change *c; 78 78 size_t namelen; 79 int rem = 0; 79 80 uint32 u32_tmp; /* Temp arg to prs_uint32 to avoid 80 81 * signed/unsigned issues */ … … 102 103 103 104 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 104 110 if (!prs_uint32("offset", ps, 1, &u32_tmp)) goto fail; 105 111 … … 116 122 */ 117 123 prs_set_offset(ps, prs_offset(ps)-2); 124 125 if (rem != 0) { 126 if (!prs_align_custom(ps, 4)) goto fail; 127 } 118 128 119 129 TALLOC_FREE(uni_name.buffer);
Note:
See TracChangeset
for help on using the changeset viewer.