load-fragment: add missing oom check
Fixes CID#1391379.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user