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

Re: [libvirt] [PATCH] security_manager: fix comparison



On Wed, Apr 03, 2013 at 02:53:05PM -0600, Eric Blake wrote:
> On 04/03/2013 02:40 PM, Luiz Capitulino wrote:
> > On Wed, 3 Apr 2013 22:23:28 +0200
> > Guido Günther <agx sigxcpu org> wrote:
> > 
> >> otherwise we crash later on if we don't find a match like:
> >>
> >>  #0  0xb72c2b4f in virSecurityManagerGenLabel (mgr=0xb8e42d20, vm=0xb8ef40c0) at security/security_manager.c:424
> 
> >>  
> >>      virObjectLock(mgr);
> >> -    for (i = 0; vm->nseclabels; i++) {
> >> +    for (i = 0; i < vm->nseclabels; i++) {
> 
> Yep, that's a pretty obvious fix.
Indeed, but it took me a second to spot it. Pushed, thanks.
 -- Guido


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