]> granicus.if.org Git - libnl/commit
addr: Reset unused portion of binary address in nl_addr_set_binary_addr()
authorThomas Graf <tgraf@suug.ch>
Thu, 14 Mar 2013 13:41:12 +0000 (14:41 +0100)
committerThomas Graf <tgraf@suug.ch>
Thu, 14 Mar 2013 13:41:12 +0000 (14:41 +0100)
commitf0f33c394b97341e824b5fdf62707fcd25ef84cc
tree4835e4ce1164749f205ab5e6738c17629b90ce95
parentf72bfc72205366f2f877fef379c79c9a2a1cce03
addr: Reset unused portion of binary address in nl_addr_set_binary_addr()

memset() the binary address before overwriting it with new data
to avoid leaving around old portions of the address.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
lib/addr.c