hostname: use free_and_strdup()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 15 May 2018 13:48:58 +0000 (22:48 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 15 May 2018 13:51:57 +0000 (22:51 +0900)
commitc650f207218845080d1edd79cd439541fa68ddab
treedd66d7e747c4c9a733e007fa44812dc2c79d08e3
parent4330dc03a06cec196521a37ce6a6d75ce0033c55
hostname: use free_and_strdup()

Also, this makes hostnamed check the input strings before
bus_verify_polkit_async().
src/hostname/hostnamed.c