]> xenbits.xensource.com Git - libvirt.git/commit
admin: Add a check to reject negative argument for number of typed params
authorErik Skultety <eskultet@redhat.com>
Tue, 3 May 2016 15:04:42 +0000 (17:04 +0200)
committerErik Skultety <eskultet@redhat.com>
Wed, 4 May 2016 14:36:22 +0000 (16:36 +0200)
commitca0d45148d09b6712f7a9563d88a1befb585e88c
tree41f7e48f92d45fcca089969ce2cb03ba74bc35f5
parent71714e854955d4017d1d9de2cd776626d28edac6
admin: Add a check to reject negative argument for number of typed params

Since nparams can be technically negative, it is a good practice throughout
our code to check if nparams actually has a non-negative value. The same effect
would be achieved by converting our internal typed params serializer argument
to 'unsigned' type, but it definitely would not be the path of least resistance.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/libvirt-admin.c