info: fix outbuffer slot determination
authorFerry Huberts <ferry.huberts@pelagic.nl>
Sun, 1 May 2016 10:05:36 +0000 (12:05 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Sun, 1 May 2016 16:13:03 +0000 (18:13 +0200)
commitc134fe9addad1fa1fd730ad9f0e74640d78daa5b
tree9a8858442d4d600b9743d98bce715f621dc68b8d
parent4f08152e1cde8bf45693956d39d53206a05dd20c
info: fix outbuffer slot determination

If there are multiple replies in-flight and the non-last reply
completes, then a new reply would overwrite the last reply in
outbuffer, thereby resulting in corruption, memory leaks and all
kinds of other unpleasantness.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/info/olsrd_info.c