summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-06-16 11:03:31 +0200
committerGünther Deschner <gd@samba.org>2010-06-16 12:20:05 +0200
commit8843eea2e06736f27080eedab883ffc51feacb33 (patch)
tree97ca2bd0672974f01f81d384bdb01b6ebbcd02f8 /source4
parent185adc4c810eff3876727ed33b87c208aa09cb62 (diff)
downloadsamba-8843eea2e06736f27080eedab883ffc51feacb33.tar.gz
samba-8843eea2e06736f27080eedab883ffc51feacb33.tar.bz2
samba-8843eea2e06736f27080eedab883ffc51feacb33.zip
s4-smbtorture: only pull info when status code indicates success in smbcli_rap_netprintqgetinfo().
Guenther
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rap/rap.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/torture/rap/rap.c b/source4/torture/rap/rap.c
index 33d67156a3..34036f0ae7 100644
--- a/source4/torture/rap/rap.c
+++ b/source4/torture/rap/rap.c
@@ -719,10 +719,12 @@ NTSTATUS smbcli_rap_netprintqgetinfo(struct smbcli_tree *tree,
NDR_GOTO(ndr_pull_uint16(call->ndr_pull_param, NDR_SCALARS, &r->out.convert));
NDR_GOTO(ndr_pull_uint16(call->ndr_pull_param, NDR_SCALARS, &r->out.available));
- call->ndr_pull_data->relative_rap_convert = r->out.convert;
+ if (r->out.status == 0) {
+ call->ndr_pull_data->relative_rap_convert = r->out.convert;
- NDR_GOTO(ndr_pull_set_switch_value(call->ndr_pull_data, &r->out.info, r->in.level));
- NDR_GOTO(ndr_pull_rap_printq_info(call->ndr_pull_data, NDR_SCALARS|NDR_BUFFERS, &r->out.info));
+ NDR_GOTO(ndr_pull_set_switch_value(call->ndr_pull_data, &r->out.info, r->in.level));
+ NDR_GOTO(ndr_pull_rap_printq_info(call->ndr_pull_data, NDR_SCALARS|NDR_BUFFERS, &r->out.info));
+ }
if (DEBUGLEVEL >= 10) {
NDR_PRINT_OUT_DEBUG(rap_NetPrintQGetInfo, r);