• Adrian Reber's avatar
    cr-service: feature check core dumps if criu_req->criu_opts is empty · 3200fa8f
    Adrian Reber authored
    Trying to use the FEATURE_CHECK RPC with criu_req->criu_opts set to NULL
    makes CRIU segfault. Technically there is no reason to have a valid
    criu_req->criu_opt during feature check. The only reason was to set the
    image directory for setproctitle(). This removes the segfault and the
    unnecessary requirement of setting criu_req->criu_opts.
    
    Another possible solution would have been to return an error if
    criu_req->criu_opts is NULL but so far it seems unnecessary to have
    criu_req->criu_opts during feature check.
    Signed-off-by: 's avatarAdrian Reber <areber@redhat.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    3200fa8f
cr-service.c 22.8 KB