[CRIU] [PATCH 2/2] net: Add ip rule save/restore
Cyrill Gorcunov
gorcunov at gmail.com
Fri Oct 23 08:58:16 PDT 2015
On Fri, Oct 23, 2015 at 06:49:15PM +0300, Kirill Tkhai wrote:
>
> +static inline int dump_rule(struct cr_imgset *fds)
> +{
> + struct cr_img *img = img_from_set(fds, CR_FD_RULE);
> + char *path = strdup(img->path);
> +
> + if (!path)
> + return -1;
> +
While you're here, xstrdup please, we better yield an error message
if no memory present.
More information about the CRIU
mailing list