Re: [B.A.T.M.A.N.] [PATCH 1/2] batctl: Fix static buffer for resolved mac adddress

Marek Lindner
2013-10-26T14:05:21Z

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

On Tuesday 15 October 2013 18:01:08 Sven Eckelmann wrote:
> The resolve_mac_* functions are currently not reentrant-safe because they
> are using ether_aton. Thus all functions returning a mac address in a
> similar way must also ensure that their data is in a statically allocated
> buffer and not on a stack.
>
> resolve_mac_from_cache did that for the wrong buffer.
>
> Signed-off-by: Sven Eckelmann <sven@narfation.org>
> ---
> functions.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

Applied in revision ef41a8d.

Thanks,
Marek

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]