diff options
author | Günther Deschner <gd@samba.org> | 2010-06-16 11:03:31 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-06-16 12:15:24 +0200 |
commit | 1f1c04010a55e67d8dc2110276eed4cf2a8a0afa (patch) | |
tree | b9caf6f8c05ff145caf58c0fbd0c2c9bfb5954d8 /source4/torture/rap | |
parent | 14f2525f9e72edffbc0530d3aa20a5a9b80b2ce2 (diff) | |
download | samba-1f1c04010a55e67d8dc2110276eed4cf2a8a0afa.tar.gz samba-1f1c04010a55e67d8dc2110276eed4cf2a8a0afa.tar.bz2 samba-1f1c04010a55e67d8dc2110276eed4cf2a8a0afa.zip |
s4-smbtorture: only pull info when status code indicates success in smbcli_rap_netprintqgetinfo().
Guenther
Diffstat (limited to 'source4/torture/rap')
-rw-r--r-- | source4/torture/rap/rap.c | 8 |
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); |