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

[TA1487] Passing correct size to getnameinfo() #77

Merged
merged 3 commits into from
Jul 2, 2018

Conversation

satbirchhikara
Copy link
Collaborator

Signed-off-by: satbir [email protected]

@satbirchhikara satbirchhikara requested a review from vishnuitta July 2, 2018 11:11
@satbirchhikara satbirchhikara assigned jkryl and mynktl and unassigned jkryl and mynktl Jul 2, 2018
@satbirchhikara satbirchhikara requested review from jkryl and mynktl July 2, 2018 11:11
NI_NUMERICSERV);
rc = getnameinfo(&in_addr, in_len, hbuf,
sizeof (NI_MAXHOST), sbuf, sizeof (NI_MAXSERV),
NI_NUMERICHOST | NI_NUMERICSERV);
Copy link

Choose a reason for hiding this comment

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

You need to remove sizeof in front of NI_MAXHOST and NI_MAXSERV and the same for kmem_allocs above. Those are integers and not C types.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks ! Fixed this issue. Please have a look.

@codecov-io
Copy link

Codecov Report

Merging #77 into zfs-0.7-release will decrease coverage by 4.63%.
The diff coverage is 100%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##           zfs-0.7-release      #77      +/-   ##
===================================================
- Coverage            50.47%   45.83%   -4.64%     
===================================================
  Files                  239      239              
  Lines                76096    76091       -5     
===================================================
- Hits                 38406    34874    -3532     
- Misses               37690    41217    +3527

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc8e605...69fa77f. Read the comment docs.

Copy link

@jkryl jkryl left a comment

Choose a reason for hiding this comment

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

thanks

@satbirchhikara satbirchhikara merged commit ab66b53 into mayadata-io:zfs-0.7-release Jul 2, 2018
@satbirchhikara satbirchhikara deleted the TA1487 branch July 2, 2018 15:18
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