mirror of
https://github.com/samba-team/samba.git
synced 2025-01-01 21:18:10 +03:00
wrong alignment size calculation
spot by Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>
(This used to be commit eda0e7589f
)
This commit is contained in:
parent
081b70cd8d
commit
10297d8cd3
@ -3366,7 +3366,9 @@ uint32 spoolss_size_printer_info_2(PRINTER_INFO_2 *info)
|
||||
* it is easier to maintain the calculation here and
|
||||
* not place the burden on the caller to remember. --jerry
|
||||
*/
|
||||
size += size % 4;
|
||||
if ((size % 4) != 0) {
|
||||
size += 4 - (size % 4);
|
||||
}
|
||||
|
||||
return size;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user