summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-09-11 20:53:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:03:35 -0500
commitb4857a4c2a06c6ef4bd8b15f7da3525ecc9ff998 (patch)
treeb91f954009c09d2956a8f86b6899a86f4e7c9f05 /source3/printing
parent8b1d990fdd97f52a76c131c21d51a4b3bdd077a6 (diff)
downloadsamba-b4857a4c2a06c6ef4bd8b15f7da3525ecc9ff998.tar.gz
samba-b4857a4c2a06c6ef4bd8b15f7da3525ecc9ff998.tar.bz2
samba-b4857a4c2a06c6ef4bd8b15f7da3525ecc9ff998.zip
r10154: Fix crash bug on security descriptor upgrade (as seen on x86_64).
Guenther (This used to be commit daa61ef75b4f7cf510b17cd0b85f5830c73b9279)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 3b659f4c75..f8d9220c05 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -342,7 +342,8 @@ static int sec_desc_upg_fn( TDB_CONTEXT *the_tdb, TDB_DATA key,
SEC_DESC *sec, *new_sec;
TALLOC_CTX *ctx = state;
int result, i;
- uint32 sd_size, size_new_sec;
+ uint32 sd_size;
+ size_t size_new_sec;
DOM_SID sid;
if (!data.dptr || data.dsize == 0)