This commit [1] refactored the "encode" function but didn't handle
the variable names properly while moving code around, using the
undefined "wireaddr" variable.
[1]
cf778097d6d4fdf4c178d0f6d1e1089d347ffc6d
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
::memcpy(dst, src, copy_size);
encode(ss, bl);
#else
- ceph_sockaddr_storage ss{};
+ ceph_sockaddr_storage ss;
::memset(&ss, '\0', sizeof(ss));
- ::memcpy(&wireaddr, &ss, std::min(sizeof(ss), sizeof(a)));
+ ::memcpy(&ss, &a, std::min(sizeof(ss), sizeof(a)));
encode(ss, bl);
#endif
}