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:38:43 +0000 (21:38 +0200)
commitd818380fb6db3401c204a7cdb66af9e5ccc7693b
tree5ea3a468c8b727375af935e369a8e784d179a271
parent94a1c942315f6b3c2870cf744114bb133f209799
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