As reported and fixed by Ralph Wuerthner, the ctdbd_migrate() error path may talloc_free() an uninitialized hdr pointer.
Patch pending upstream: https://lists.samba.org/archive/samba-technical/2016-October/116620.html
Created attachment 12561 [details] fix cherry-picked for v4-4-test
Created attachment 12562 [details] fix cherry picked for 4-5-test
Karolin, please add the patches to the relevant branches. Thanks!
(In reply to Andreas Schneider from comment #4) Pushed to autobuild-v4-{5,4}-test.
(In reply to Karolin Seeger from comment #5) Hmm, this somehow did not end up in the release branches. :-( As the releases will be tomorrow, it's too late to push it to autobuild again now. Will be included in the next bugfix releases then.
(In reply to Karolin Seeger from comment #6) Pushed to autobuild-v4-{5,4}-test.
(In reply to Karolin Seeger from comment #7) Pushed to both branches. Closing out bug report. Thanks!