# HG changeset patch # User valeriep # Date 1527122249 0 # Node ID 317a8688db781ae751dee40ce599bac9401bd22b # Parent 4fac3c99487d99f8124a9627610601d94469527e 8194630: Uninitialized initiator_address in native GSS Summary: Zeroized the initiator/acceptor_address in gss_channel_bindings_t Reviewed-by: valeriep Contributed-by: Jan Kalina diff -r 4fac3c99487d -r 317a8688db78 src/java.security.jgss/share/native/libj2gss/GSSLibStub.c --- a/src/java.security.jgss/share/native/libj2gss/GSSLibStub.c Wed May 23 17:09:49 2018 -0700 +++ b/src/java.security.jgss/share/native/libj2gss/GSSLibStub.c Thu May 24 00:37:29 2018 +0000 @@ -192,6 +192,10 @@ cb->initiator_addrtype = GSS_C_AF_NULLADDR; cb->acceptor_addrtype = GSS_C_AF_NULLADDR; + // addresses needs to be initialized to empty + memset(&cb->initiator_address, 0, sizeof(cb->initiator_address)); + memset(&cb->acceptor_address, 0, sizeof(cb->acceptor_address)); + /* set up initiator address */ jinetAddr = (*env)->CallObjectMethod(env, jcb, MID_ChannelBinding_getInitiatorAddr);