]> git.proxmox.com Git - mirror_frr.git/commit
lib: handle str2mac case where buffer is allocated by the function
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 1 Feb 2017 18:05:19 +0000 (19:05 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 1 Feb 2017 18:05:19 +0000 (19:05 +0100)
commit17b1e94940ba0569c7a0ad202a822b1e82fbed21
tree83d1abbaca855178ad2c110d89148d941e773b1d
parent141e18446c85954056b72428f4f3f531105e51e9
lib: handle str2mac case where buffer is allocated by the function

The case where no buffer is passed to the str2mac function is handled.
In that case, a buffer is allocated. Then the check against the buffer
length is not done.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/prefix.c