summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/hfp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/hfp.c b/plugins/hfp.c
index 12b7f0ae..947bfc29 100644
--- a/plugins/hfp.c
+++ b/plugins/hfp.c
@@ -811,6 +811,9 @@ static int hfp_init(void)
{
int err;
+ if (DBUS_TYPE_UNIX_FD < 0)
+ return -EBADF;
+
connection = ofono_dbus_get_connection();
added_watch = g_dbus_add_signal_watch(connection, NULL, NULL,