The NT_STATUS_INVALID_VIEW_SIZE check is currently wrong and we print the wrong error value in DEBUG messages.
Fixed by 4d6cd932a955a99ca33cc4aedd7f612e56e0b1de in master for 4.11
Created attachment 15063 [details] Patches for v4-10-test
Created attachment 15064 [details] Patches for v4-9-test
Re-assigning to Karolin for inclusion in 4.10.next, 4.9.next.
(In reply to Jeremy Allison from comment #4) Pushed to autobuild-v4-{10,9}-test.
(In reply to Karolin Seeger from comment #5) Pushed to both branches. Closing out bug report. Thanks!