> > --- a/src/remote/remote_driver.c
> > +++ b/src/remote/remote_driver.c
> > @@ -2849,17 +2849,34 @@ remoteDomainMigratePrepare2 (virConnectPtr dconn,
> >          goto done;
> >  
> >      if (ret.cookie.cookie_len > 0) {
> > +        if (!cookie || !cookielen) {
> > +            remoteError(VIR_ERR_INTERNAL_ERROR, "%s",
> > +                        _("caller ignores cookie or cookielen"));
> > +            goto error;
> > +        }
...
> 
> ACK; looks nicer than v1 for diagnosing a logic bug in the caller,
> rather than papering over it.

Thanks, pushed.

Jirka

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to