Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opendkim/opendkim.c: add two missing dkimf_dstring_get() calls #214

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

orlitzky
Copy link

This fixes the build with CFLAGS="-Werror=incompatible-pointer-types", which some newer compilers are planning to make default.

Gentoo-Bug: https://bugs.gentoo.org/919366

This fixes the build with CFLAGS="-Werror=incompatible-pointer-types",
which some newer compilers are planning to make default.

Gentoo-Bug: https://bugs.gentoo.org/919366
@@ -11656,8 +11656,8 @@ mlfi_eoh(SMFICTX *ctx)
(status != 0 || user == NULL || domain == NULL ||
user[0] == '\0' || domain[0] == '\0'))
{
strlcpy(addr, conf->conf_defsender, sizeof addr);
status = dkim_mail_parse(addr, &user, &domain);
strlcpy(dkimf_dstring_get(addr), conf->conf_defsender, sizeof addr);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems it should use dkim_dstring_copy() instead of strlcpy().

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, I changed it in an additional commit. Thanks.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed the commit, and it looks good for me. I'm sorry for the typo on function name, and thank you for the commit.

I'll merge this to my branch.

futatuki added a commit to futatuki/OpenDKIM that referenced this pull request Apr 26, 2024
…e-pointer-types

Fix wrong usage of dkimf_string *addr in mlfi_eoh().
futatuki added a commit to futatuki/OpenDKIM that referenced this pull request Apr 26, 2024
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.

2 participants