mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 07:42:56 +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)
|
unsigned short *port)
|
||||||
{
|
{
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
unsigned short i;
|
int i;
|
||||||
int fd = -1;
|
int fd = -1;
|
||||||
|
|
||||||
*port = 0;
|
*port = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user