[libvirt] [PATCH] security_manager: fix comparison

Eric Blake eblake at redhat.com
Wed Apr 3 20:53:05 UTC 2013


On 04/03/2013 02:40 PM, Luiz Capitulino wrote:
> On Wed, 3 Apr 2013 22:23:28 +0200
> Guido Günther <agx at 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.

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130403/14059d1a/attachment-0001.sig>


More information about the libvir-list mailing list