[
https://issues.apache.org/jira/browse/HADOOP-11848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14506452#comment-14506452
]
Malcolm Kavalsky commented on HADOOP-11848:
-------------------------------------------
I wanted to send in a patch for this yesterday, but am having trouble
with git :
$ git remote update
Fetching origin
fatal: read error: Connection reset by peer
error: Could not fetch origin
So, perhaps you could patch this ?
> Incorrect arguments to sizeof in DomainSocket.c
> -----------------------------------------------
>
> Key: HADOOP-11848
> URL: https://issues.apache.org/jira/browse/HADOOP-11848
> Project: Hadoop Common
> Issue Type: Bug
> Components: native
> Affects Versions: 2.6.0
> Reporter: Malcolm Kavalsky
> Assignee: Malcolm Kavalsky
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Length of buffer to be zeroed using sizeof , should not use the address of
> the structure rather the structure itself.
> DomainSocket.c line 156
> Replace current:
> memset(&addr,0,sizeof,(&addr));
> With:
> memset(&addr, 0, sizeof(addr));
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)