load-fragment: add missing oom check

Fixes CID#1391379.
This commit is contained in:
Yu Watanabe
2018-05-31 13:26:27 +09:00
parent 66c9dfdddc
commit 3c381a671f
+2 -1
View File
@@ -811,7 +811,8 @@ int config_parse_socket_bindtodevice(
return 0;
}
free_and_strdup(&s->bind_to_device, rvalue);
if (free_and_strdup(&s->bind_to_device, rvalue) < 0)
return log_oom();
return 0;
}