Both calls need to return NULL in the error case to avoid ndr encoding problems.
(found by smbtorture spoolss test).
Guenther
&r->out.info->info1,
r->in.offered,
r->out.needed);
- if (W_ERROR_EQUAL(werror, WERR_INSUFFICIENT_BUFFER)) {
+ if (!W_ERROR_IS_OK(werror)) {
TALLOC_FREE(r->out.info);
}
break;
&r->out.info->info1,
r->in.offered,
r->out.needed);
- if (W_ERROR_EQUAL(result, WERR_INSUFFICIENT_BUFFER)) {
+ if (!W_ERROR_IS_OK(result)) {
TALLOC_FREE(r->out.info);
}
break;