]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
add padding to make v4 the same size as v6.
authorAlan T. DeKok <aland@freeradius.org>
Thu, 9 Jun 2022 14:22:01 +0000 (10:22 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 9 Jun 2022 14:41:47 +0000 (10:41 -0400)
commitd80ed221988ebcbaf3e661a5b4dae0eda64d2a76
tree71913afbdf9fe2ffb54bac75cb1bdc2326ce8854
parent2197ab5d3077777e985dfb4d49b89b53c2e75599
add padding to make v4 the same size as v6.

So that when we initialize structures, omitted fields are set to
zero.  If we don't have a padding field, then because v4 addresses
are smaller than v6 addresses, the remaining bytes after the v4
addresses are undefined.
src/lib/util/inet.h