summaryrefslogtreecommitdiffstats
path: root/gisi
diff options
context:
space:
mode:
authorRĂ©mi Denis-Courmont <remi.denis-courmont@nokia.com>2009-08-19 18:07:10 +0300
committerAki Niemi <aki.niemi@nokia.com>2009-08-19 18:16:06 +0300
commit75f8148ab5a737420b990f904d7d47b10a2682ba (patch)
tree2c2d177b53d6269b0ada5ee2392a125be0fa7f4a /gisi
parent5b0fffe66a4bebdddc8b8b4ab2b9eb9c8e0a8d89 (diff)
downloadofono-75f8148ab5a737420b990f904d7d47b10a2682ba.tar.bz2
gisi: bind pipe end point *before* getting its handle
Diffstat (limited to 'gisi')
-rw-r--r--gisi/pep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gisi/pep.c b/gisi/pep.c
index 40efc377..89c6a808 100644
--- a/gisi/pep.c
+++ b/gisi/pep.c
@@ -87,7 +87,7 @@ GIsiPEP *g_isi_pep_create(GIsiModem *modem)
pep->gprs_fd = -1;
pep->handle = 0;
- if (ioctl(fd, SIOCPNGETOBJECT, &pep->handle) || listen(fd, 1))
+ if (listen(fd, 1) || ioctl(fd, SIOCPNGETOBJECT, &pep->handle))
goto error;
channel = g_io_channel_unix_new(fd);