]> git.ipfire.org Git - thirdparty/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)
committerJán Tomko <jtomko@redhat.com>
Thu, 9 Jan 2014 13:25:35 +0000 (14:25 +0100)
commit05700f604540bd9eee2ba12873d3424f77d2e26a
tree83eb3a0e042558c345291edc3556f7635b0f0ce5
parent2e35d28749c89f91c158d9a681e20dc790040b15
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.

(cherry picked from commit 86dba8f3de32cb4d32156f64e7f580f6c5f42a12)

Conflicts:
  missing VNC websocket support
src/qemu/qemu_process.c
src/qemu/qemu_migration.c
src/qemu/qemu_process.c
src/util/virportallocator.c