netutils/mdns: fix some defects
authorWonsang Ryou <wonsang.yoo@samsung.com>
Thu, 20 Apr 2017 11:09:42 +0000 (20:09 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Sat, 6 May 2017 10:51:23 +0000 (19:51 +0900)
commit2440bf5014a8d155927212d2f964dc6e006b88f1
treed8aa0b89f19cb54e8ec8d21a2b6ef00a8e336d3e
parenta59161be62a1575019923cdeb8b3eca526d32e81
netutils/mdns: fix some defects

This patch fixes the following defects in mdns.
  - uninitialized data can be read from local varible 'taile'.
  - pointer 'c_tail' can be dereferenced.
  - the return value of strstr() is not checked.

Change-Id: I0b7b47b52ed66ad80f9deacc56e5607a95def01b
Signed-off-by: Wonsang Ryou <wonsang.yoo@samsung.com>
apps/netutils/mdns/mdns.c
apps/netutils/mdns/mdnsd.c