summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2004-01-14 22:53:50 +0000
committerHerb Lewis <herb@samba.org>2004-01-14 22:53:50 +0000
commita363e5d8c549861329506bd87c11d82ace5520e5 (patch)
tree1208108b6f0808a327cd785b1bc229a0a1f3c8ae /testsuite
parent40b7d863dc246ea23ff3d9cdc167f1fb96166e1d (diff)
downloadsamba-a363e5d8c549861329506bd87c11d82ace5520e5.tar.gz
samba-a363e5d8c549861329506bd87c11d82ace5520e5.tar.xz
samba-a363e5d8c549861329506bd87c11d82ace5520e5.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
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 9d38b9b10ae..7ba40b18a31 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 */