summaryrefslogtreecommitdiff
path: root/testsuite/printing/psec.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/printing/psec.c')
-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 33a45e89d0..051837cec9 100644
--- a/testsuite/printing/psec.c
+++ b/testsuite/printing/psec.c
@@ -352,8 +352,11 @@ int psec_setsec(char *printer)
goto done;
}
- prs_init(&ps, (uint32)sec_desc_size(sdb->sec) +
- sizeof(SEC_DESC_BUF), 4, mem_ctx, MARSHALL);
+ if (!prs_init(&ps, (uint32)sec_desc_size(sdb->sec) +
+ sizeof(SEC_DESC_BUF), 4, mem_ctx, MARSHALL)) {
+ printf("prs_init() failed\n");
+ goto done;
+ }
if (!sec_io_desc_buf("nt_printing_setsec", &sdb, &ps, 1)) {
printf("sec_io_desc_buf failed\n");