HADOOP-11848. Incorrect arguments to sizeof in DomainSocket.c (Malcolm Kavalsky via Colin P. McCabe)

(cherry picked from commit a3b1d8c902)
This commit is contained in:
Colin Patrick Mccabe 2015-04-22 12:41:07 -07:00
parent 71c9f2f4e7
commit 72b706a1b0
2 changed files with 4 additions and 1 deletions

View File

@ -95,6 +95,9 @@ Release 2.8.0 - UNRELEASED
HADOOP-11859. PseudoAuthenticationHandler fails with httpcomponents v4.4.
(Eugene Koifman via jitendra)
HADOOP-11848. Incorrect arguments to sizeof in DomainSocket.c
(Malcolm Kavalsky via Colin P. McCabe)
Release 2.7.1 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -153,7 +153,7 @@ static jthrowable setup(JNIEnv *env, int *ofd, jobject jpath, int doConnect)
terror(ret));
goto done;
}
memset(&addr, 0, sizeof(&addr));
memset(&addr, 0, sizeof(addr));
addr.sun_family = AF_UNIX;
cpath = (*env)->GetStringUTFChars(env, jpath, NULL);
if (!cpath) {