This is already fixed in master by 280e9191cbf8a766e69ab138450f2beccbedd879. This can happen in the error codepath in non_widelink_open(). Got a customer report with a crash caused by this, so we need to backport 280e9191cbf8a766e69ab138450f2beccbedd879.
Created attachment 17387 [details] Patch for 4.15 and 4.16 cherry-picked from master
Ping, can we get this one in please ? Flag me to review if needed :-).
Re-assigning to Jule for inclusion in 4.16.next, 4.15.next.
Pushed to autobuild-v4-{16,15}-test.
This bug was referenced in samba v4-16-test: 54ad51cd3cc87bc77789821592b50aa1c3d0133c
This bug was referenced in samba v4-15-test: b70ea7082d69938a26183e5fbd9d6be524136336
Closing out bug report. Thanks!
This bug was referenced in samba v4-16-stable (Release samba-4.16.3): 54ad51cd3cc87bc77789821592b50aa1c3d0133c
This bug was referenced in samba v4-15-stable (Release samba-4.15.10): b70ea7082d69938a26183e5fbd9d6be524136336