Re: [PATCHv2] leaseshelper: split out virLeaseNew

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 09, 2016 at 06:11:07AM -0500, John Ferlan wrote:
> 
> 
> On 02/05/2016 11:49 AM, Ján Tomko wrote:
> > +static int
> > +virLeaseNew(virJSONValuePtr *lease_ret,
> > +            const char *mac,
> > +            const char *clientid,
> > +            const char *ip,
> > +            const char *hostname,
> > +            const char *iaid,
> > +            const char *server_duid)
> 
> Coverity complains - order of arguments appears swapped...
> 
> ...iaid, server_duid)
> 
> [1]

> > @@ -405,6 +461,9 @@ main(int argc, char **argv)
> >      switch ((enum virLeaseActionFlags) action) {
> >      case VIR_LEASE_ACTION_ADD:
> >      case VIR_LEASE_ACTION_OLD:
> > +        /* Create new lease */
> > +        if (virLeaseNew(&lease_new, mac, clientid, ip, hostname, server_duid, iaid) < 0)
> 
> While here it's ...server_duid, iaid)
> 

Thanks,

fixed by:
commit 99a6f30db0781ee74c7c373ace9553cba299094b
    leaseshelper: swap two parameters of virLeaseNew

Jan
> John

Attachment: signature.asc
Description: Digital signature

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

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]