gensec_krb5_start() fails silently with tlocal_addr / tremote_addr is IPv6

Lorenz Schori lo at znerol.ch
Fri Jul 2 07:19:47 UTC 2021


Hi,

On Thu, 1 Jul 2021 22:07:27 +0200
Lorenz Schori via samba-technical <samba-technical at lists.samba.org>
wrote:

> The function gensec_krb5_start() returns NT_STATUS_INTERNAL_ERROR when
> tlocal_addr / tremote_addr are IPv6. 

It looks like commit 43c808f2 might be the culprit. Before it used
sizeof(addr.u) afterward sizeof(addr.u.sa):
https://github.com/samba-team/samba/commit/43c808f2ff907497dfff0988ff90a48fdcfc16ef

I suspect that this should be using sockaddr_storage instead of
sockaddr in the first place. This was indeed the case before commit
a8ba35fa:
https://github.com/samba-team/samba/commit/a8ba35fa97bedaf6161978f7b15121ad6a293643

Cheers,
Lorenz



More information about the samba-technical mailing list