Browse Source

Avoid writing uninitialized value data->realm in serialize_hop_data(...) (via create_onionpacket(...))

ppa-0.6.1
practicalswift 7 years ago
committed by Christian Decker
parent
commit
f84828be36
  1. 1
      common/sphinx.c

1
common/sphinx.c

@ -369,6 +369,7 @@ struct onionpacket *create_onionpacket(
for (i = num_hops - 1; i >= 0; i--) {
memcpy(hops_data[i].hmac, nexthmac, SECURITY_PARAMETER);
hops_data[i].realm = 0;
generate_key_set(params[i].secret, &keys);
generate_cipher_stream(stream, keys.rho, ROUTING_INFO_SIZE);

Loading…
Cancel
Save