summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-06-01 18:17:22 +0000
committerJeremy Allison <jra@samba.org>2000-06-01 18:17:22 +0000
commit61ab5b46cfb93939651b4426016845a035315bf7 (patch)
tree369ec1e8041a8ddecbc141e61abaf86b45316274 /source3/printing
parentf0080e5a3979fac94d6668cf6ee9d9f61302839c (diff)
downloadsamba-61ab5b46cfb93939651b4426016845a035315bf7.tar.gz
samba-61ab5b46cfb93939651b4426016845a035315bf7.tar.bz2
samba-61ab5b46cfb93939651b4426016845a035315bf7.zip
Back to building. Now to test with insure.
Added some frees needed to stop memory leaks. Jeremy. (This used to be commit eba31e4e802120c9eb8c4688f521b4de9cb91f5c)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index d63fdfd1b9..023f4ce9d1 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -1374,15 +1374,13 @@ uint32 nt_printing_setsec(char *printername, SEC_DESC_BUF *secdesc_ctr)
fstring key;
uint32 status;
- prs_init(&ps, 0, 4, MARSHALL);
- ps.is_dynamic = True;
+ prs_init(&ps, (uint32)sec_desc_size(secdesc_ctr->sec), 4, MARSHALL);
if (!sec_io_desc_buf("nt_printing_setsec", &secdesc_ctr, &ps, 1)) {
status = ERROR_INVALID_FUNCTION;
goto out;
}
-
slprintf(key, sizeof(key), "SECDESC/%s", printername);
if (tdb_prs_store(tdb, key, &ps)==0) {