Skip to content

- mod_gss.c must provide its own definition of get_v4inaddr()#4

Open
Sashan wants to merge 1 commit into
huaraz:masterfrom
Sashan:get_v4inaddr
Open

- mod_gss.c must provide its own definition of get_v4inaddr()#4
Sashan wants to merge 1 commit into
huaraz:masterfrom
Sashan:get_v4inaddr

Conversation

@Sashan
Copy link
Copy Markdown

@Sashan Sashan commented Oct 18, 2019

Perhaps we should talk to T.J. to create a public version
of get_v4inaddr() for gssmod

This change fixes channel binding for IPv4 addresses mapped to IPv6 addresses.
mod_gss relies on get_v4inaddr() which is implemented in proftpd/src/netaddr.c.
The function is defined as static, hence it is invisible to other modules.

If we would have been linking mod_gss to proftpd statically, then we could discover the
bug at build time. Unfortunately we deliver mod_gss as .so plugin, hence the problem is discovered by runtime linker, which just kills session process as soon as mod_gss calls to get_v4inaddr().

  Perhaps we should talk to T.J. to create a public version
  of get_v4inaddr() for gssmod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant