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

This commit is contained in:
Colin Patrick Mccabe 2015-04-22 11:27:38 -07:00
parent 12f4df043f
commit a3b1d8c902
2 changed files with 4 additions and 1 deletions

View File

@ -536,6 +536,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) {