qemu: cleanup error checking on agent replies
On all the places where qemuAgentComand() was called, we did a check for errors in the reply. Unfortunately, some of the places called qemuAgentCheckError() without checking for non-null reply which might have resulted in a crash. So this patch makes the error-checking part of qemuAgentCommand() itself, which: a) makes it look better, b) makes the check mandatory and, most importantly, c) checks for the errors if and only if it is appropriate. This actually fixes a potential crashers when qemuAgentComand() returned 0, but reply was NULL. Having said that, it *should* fix the following bug: https://bugzilla.redhat.com/show_bug.cgi?id=1058149Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
Showing
-
mentioned in commit 16ee93cc
-
mentioned in commit 796ef25c
-
mentioned in commit 44d63f7c
-
mentioned in commit 2f5440b7
-
mentioned in commit 8aaa2c40
-
mentioned in commit 846a1625
-
mentioned in commit 8f69204d
-
mentioned in commit 3ee9b60d
-
mentioned in commit 74cf8368
-
mentioned in commit 0c42014e
-
mentioned in commit 49e60cca
-
mentioned in commit fb285a9d
-
mentioned in commit 54fd99a1
-
mentioned in commit f2c96114
-
mentioned in commit d39dd6e4
-
mentioned in commit 1e016b9c
-
mentioned in commit f85238ad
-
mentioned in commit 5f158424
-
mentioned in commit 32978fdc
-
mentioned in commit 82f4b23e
-
mentioned in commit 0a7cc106
-
mentioned in commit 7adf4807
-
mentioned in commit 7b051fee
-
mentioned in commit 3ed30062
-
mentioned in commit 44194f22
-
mentioned in commit 78b239e4
想要评论请 注册 或 登录