projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ae333e
)
tethering: Fix handling of undefined DBUS_TYPE_UNIX_FD
author
Marcel Holtmann
<marcel@holtmann.org>
Thu, 2 Jun 2011 00:39:30 +0000
(
02:39
+0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 2 Jun 2011 00:39:30 +0000
(
02:39
+0200)
src/tethering.c
patch
|
blob
|
history
diff --git
a/src/tethering.c
b/src/tethering.c
index
c7f4f10
..
e9f4869
100644
(file)
--- 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;