a023dcd71f
Resolves: #980228
32 lines
918 B
Diff
32 lines
918 B
Diff
From ed04964627f465d8bd18297286abf3a3d3e922ce Mon Sep 17 00:00:00 2001
|
|
From: Jakub Filak <jfilak@redhat.com>
|
|
Date: Tue, 2 Jul 2013 09:55:53 +0200
|
|
Subject: [LIBREPORT PATCH 6/6] rhbz: test xmlrpc env for errors in
|
|
abrt_xmlrpc_call_params()
|
|
|
|
Closes rhbz#980228
|
|
|
|
Signed-off-by: Jakub Filak <jfilak@redhat.com>
|
|
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
|
|
---
|
|
src/lib/abrt_xmlrpc.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/src/lib/abrt_xmlrpc.c b/src/lib/abrt_xmlrpc.c
|
|
index b531d25..75f1f2b 100644
|
|
--- a/src/lib/abrt_xmlrpc.c
|
|
+++ b/src/lib/abrt_xmlrpc.c
|
|
@@ -206,6 +206,9 @@ xmlrpc_value *abrt_xmlrpc_call_params(xmlrpc_env *env, struct abrt_xmlrpc *ax, c
|
|
xmlrpc_client_call2(env, ax->ax_client, ax->ax_server_info, method,
|
|
array, &result);
|
|
|
|
+ if (env->fault_occurred)
|
|
+ abrt_xmlrpc_die(env);
|
|
+
|
|
xmlrpc_DECREF(array);
|
|
return result;
|
|
}
|
|
--
|
|
1.8.2.1
|
|
|