Re: [B.A.T.M.A.N.] [PATCH] batman-adv: check batadv_orig_hash_add_if() return code

2012-07-05 Thread Marek Lindner
On Sunday, July 01, 2012 22:51:55 Simon Wunderlich wrote: If this call fails, some of the orig_nodes spaces may have been resized for the increased number of interface, and some may not. If we would just continue with the larger number of interfaces, this would lead to access to not allocated

[B.A.T.M.A.N.] [PATCH] batman-adv: check batadv_orig_hash_add_if() return code

2012-07-01 Thread Simon Wunderlich
If this call fails, some of the orig_nodes spaces may have been resized for the increased number of interface, and some may not. If we would just continue with the larger number of interfaces, this would lead to access to not allocated memory later. We better check the return code, and don't add