Check the return value of strdup() to avoid null pointer reference. Signed-off-by: Huaxin Lu <luhuaxin1@huawei.com> Acked-by: James Carter <jwcart2@gmail.com>
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>