odhcpd: router: Fix out of scope memory access
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 2 Sep 2019 20:29:49 +0000 (22:29 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Tue, 3 Sep 2019 19:47:44 +0000 (21:47 +0200)
commit8f1347bec5697982f4ba8c75bca8161fbe16e35c
tree52c263e23e66ada7faedb98355d62ac6a896c24b
parentd37736eecea926e9e2898349c681cff2f140d735
odhcpd: router: Fix out of scope memory access

A pointer to search_buf is accessed by search_domain outside of the
if branch which defines search_buf. The compiler could already reuse
this memory.

Coverity: #1445747
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
src/router.c