If virTimeMillisNow() fails, the SIGINT action must be reset back to
its previous state.
Signed-off-by: Michael Chapman <mike(a)very.puzzling.org>
---
tools/virsh-domain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index cdeccac..750b273 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -1857,7 +1857,7 @@ virshBlockJobWait(virshBlockJobWaitDataPtr data)
if (data->timeout && virTimeMillisNow(&start) < 0) {
vshSaveLibvirtError();
- return -1;
+ goto cleanup;
}
last.cur = last.end = 0;
--
2.4.3