Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fix dbus disconnection on error
[src/app-framework-binder.git]
/
plugins
/
afm-main-plugin
/
utils-jbus.c
diff --git
a/plugins/afm-main-plugin/utils-jbus.c
b/plugins/afm-main-plugin/utils-jbus.c
index
ec2ee01
..
c4146a4
100644
(file)
--- a/
plugins/afm-main-plugin/utils-jbus.c
+++ b/
plugins/afm-main-plugin/utils-jbus.c
@@
-26,6
+26,7
@@
#include <json-c/json.h>
#include <systemd/sd-bus.h>
#include <json-c/json.h>
#include <systemd/sd-bus.h>
+#include <systemd/sd-bus-protocol.h>
#include "utils-jbus.h"
#include "utils-jbus.h"
@@
-518,7
+519,7
@@
void jbus_unref(struct jbus *jbus)
*/
int jbus_reply_error_s(struct sd_bus_message *smsg, const char *error)
{
*/
int jbus_reply_error_s(struct sd_bus_message *smsg, const char *error)
{
- return mkerrno(sd_bus_reply_method_errorf(smsg,
"error"
, "%s", error));
+ return mkerrno(sd_bus_reply_method_errorf(smsg,
SD_BUS_ERROR_FAILED
, "%s", error));
}
/*
}
/*