]> xenbits.xensource.com Git - libvirt.git/commit
Don't spam logs with "port 0 must be in range" errors
authorJiri Denemark <jdenemar@redhat.com>
Thu, 4 Jul 2013 19:16:57 +0000 (21:16 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 8 Jul 2013 10:27:58 +0000 (12:27 +0200)
commit86dba8f3de32cb4d32156f64e7f580f6c5f42a12
treef8472f51b9b6389683ce364df0e062be5c5fe243
parent0d7dc7082421c3630a1759d2b669a4fedd1e6192
Don't spam logs with "port 0 must be in range" errors

Whenever virPortAllocatorRelease is called with port == 0, it complains
that the port is not in an allowed range, which is expectable as the
port was never allocated. Let's make virPortAllocatorRelease ignore 0
ports in a similar way free() ignores NULL pointers.
src/qemu/qemu_migration.c
src/qemu/qemu_process.c
src/util/virportallocator.c