Created attachment 9550 [details] patch Line 120-121: } else if (s1_len != s1_len) { DEBUG(0, ("Password history not written correctly, lengths differ, want %d, got %d\n", s1_len, s2_len)); I'm pretty sure that the intention was to compare s1_len with s2_len, not with itself.
Sent to samba-technical for review and push