mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
Followup fix for integer wraparound in port allocator
Change iterator variable datatype to int
This commit is contained in:
parent
56fd513458
commit
55599102b4
@ -97,7 +97,7 @@ int virPortAllocatorAcquire(virPortAllocatorPtr pa,
|
||||
unsigned short *port)
|
||||
{
|
||||
int ret = -1;
|
||||
unsigned short i;
|
||||
int i;
|
||||
int fd = -1;
|
||||
|
||||
*port = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user