[libsys-virt-perl] 07/11: Fix logic error in stream return value check
Salvatore Bonaccorso
carnil at debian.org
Tue Jan 23 20:40:25 UTC 2018
This is an automated email from the git hooks/post-receive script.
carnil pushed a commit to branch master
in repository libsys-virt-perl.
commit 0ed0122650736e0d6032df04bdf359d26e6d348a
Author: Daniel P. Berrange <berrange at redhat.com>
Date: Tue Jan 23 14:51:54 2018 +0000
Fix logic error in stream return value check
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
Virt.xs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Virt.xs b/Virt.xs
index a6f0477..7d2f1a7 100644
--- a/Virt.xs
+++ b/Virt.xs
@@ -8074,7 +8074,7 @@ recv(st, data, nbytes, flags=0)
else
RETVAL = virStreamRecv(st, rawdata, nbytes);
- if ((RETVAL < 0) && (RETVAL != -2 || RETVAL != -3)) {
+ if (RETVAL < 0 && RETVAL != -2 && RETVAL != -3) {
Safefree(rawdata);
_croak_error();
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libsys-virt-perl.git
More information about the Pkg-perl-cvs-commits
mailing list