]> granicus.if.org Git - libnl/commit
Wrong calcultation in nla_reserve
authorEmmanuel Thierry <emmanuel.thierry@telecom-bretagne.eu>
Wed, 24 Apr 2013 16:39:19 +0000 (18:39 +0200)
committerThomas Graf <tgraf@suug.ch>
Sun, 28 Apr 2013 08:34:50 +0000 (10:34 +0200)
commit979ea335b0141eb62682056be42ccb4b01e6e2a2
tree4cca69f69d311883e3b405ec95de7a6a9f5d4bd3
parent3a6d256da598d2fd9dc20137f208b88295374b67
Wrong calcultation in nla_reserve

There seams to be an error in the calculation of needed space for the message in nla_reserve. The current size of the message is counted twice: Once in NLMSG_ALIGN, once in the condition below.
This causes nla_put_* calls to be rejected if the allocation size of the message has been strictly calculated by the caller.

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