summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2004-01-14 23:00:06 +0000
committerHerb Lewis <herb@samba.org>2004-01-14 23:00:06 +0000
commita68e3446d0140be9f1b0b538986ee2c6a7c7c2cc (patch)
treef6e08e4f04ab4e6e2544951e4620b0044f4a42c2 /testsuite
parent742fbfcaba5c0ffe53ece547982b361f7c9d7b8a (diff)
downloadsamba-a68e3446d0140be9f1b0b538986ee2c6a7c7c2cc.tar.gz
samba-a68e3446d0140be9f1b0b538986ee2c6a7c7c2cc.tar.bz2
samba-a68e3446d0140be9f1b0b538986ee2c6a7c7c2cc.zip
source/rpc_parse/parse_prs.c ZERO_STRUCTP(ps) not needed as it is done
in prs_init now testsuite/printing/psec.c cannot do a prs_mem_free() when tdb_prs_fetch fails as the prs structure has not been initialized (This used to be commit 6289d7b842819fb31bec93119f15b3823e02b49e)
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/printing/psec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/testsuite/printing/psec.c b/testsuite/printing/psec.c
index 9d38b9b10a..7ba40b18a3 100644
--- a/testsuite/printing/psec.c
+++ b/testsuite/printing/psec.c
@@ -195,8 +195,11 @@ int psec_getsec(char *printer)
if (tdb_prs_fetch(tdb, keystr, &ps, mem_ctx) != 0) {
printf("error fetching descriptor for printer %s\n",
printer);
- result = 1;
- goto done;
+ /* cannot do a prs_mem_free() when tdb_prs_fetch fails */
+ /* as the prs structure has not been initialized */
+ tdb_close(tdb);
+ talloc_destroy(mem_ctx);
+ return 1;
}
/* Unpack into security descriptor buffer */