diff options
Diffstat (limited to 'src/tethering.c')
-rw-r--r-- | src/tethering.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tethering.c b/src/tethering.c index c7f4f100..e9f48697 100644 --- a/src/tethering.c +++ b/src/tethering.c @@ -41,6 +41,10 @@ #include <gdbus.h> +#ifndef DBUS_TYPE_UNIX_FD +#define DBUS_TYPE_UNIX_FD -1 +#endif + #define BRIDGE_PROC_DIR "/proc/sys/net/bridge" #define BRIDGE_NAME "tether" @@ -513,6 +517,9 @@ int __connman_private_network_request(DBusMessage *msg, const char *owner) char *iface = NULL; int index, fd, err; + if (DBUS_TYPE_UNIX_FD < 0) + return -EINVAL; + pn = g_hash_table_lookup(pn_hash, owner); if (pn != NULL) return -EEXIST; |