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

host-resolve: invalidate ivykis "now" after blocking calls to DNS #3526

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

bazsi
Copy link
Collaborator

@bazsi bazsi commented Jan 6, 2021

Signed-off-by: Balazs Scheidler [email protected]

@lgtm-com
Copy link

lgtm-com bot commented Jan 6, 2021

This pull request introduces 3 alerts when merging cff516a982d7e50bdf269aed27bcfeda441437b0 into 09823d1 - view on LGTM.com

new alerts:

  • 3 for Implicit function declaration

@kira-syslogng
Copy link
Contributor

Build SUCCESS

@MrAnno MrAnno force-pushed the invalidate-now-after-dns-calls branch from cff516a to ee08768 Compare January 7, 2021 19:31
Copy link
Collaborator

@MrAnno MrAnno left a comment

Choose a reason for hiding this comment

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

I pushed a small change onto this branch (#include <iv.h>) to make everything green.
This fixes #3514.

@@ -362,6 +362,7 @@ afinet_dd_setup_addresses(AFSocketDestDriver *s)
if (!_setup_dest_addr(self))
return FALSE;

iv_invalidate_now();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is not necessary, as _setup_dest_addr() invalidates now through resolve_hostname_to_sockaddr().

@kira-syslogng
Copy link
Contributor

Build SUCCESS

Copy link
Collaborator

@gaborznagy gaborznagy left a comment

Choose a reason for hiding this comment

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

I agree with @MrAnno's comment that iv_invalide_now() is not needed in afinet-dest.c, otherwise looks good to me.

@bazsi please consider that comment, but it can be merged if you like to keep it this way.

@gaborznagy gaborznagy merged commit bd90b0f into syslog-ng:master Jan 8, 2021
@MrAnno
Copy link
Collaborator

MrAnno commented Jan 8, 2021

My comment is not really important, the extra iv_invalidate_now() in afinet-dest won't have side-effects.

I'll send a newsfile entry.

MrAnno added a commit to MrAnno/syslog-ng that referenced this pull request Jan 8, 2021
Signed-off-by: László Várady <[email protected]>
gaborznagy pushed a commit that referenced this pull request Jan 8, 2021
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.

4 participants