diff options
author | RĂ©mi Denis-Courmont <remi.denis-courmont@nokia.com> | 2009-08-19 18:07:10 +0300 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2009-08-19 18:16:06 +0300 |
commit | 75f8148ab5a737420b990f904d7d47b10a2682ba (patch) | |
tree | 2c2d177b53d6269b0ada5ee2392a125be0fa7f4a /gisi/pep.c | |
parent | 5b0fffe66a4bebdddc8b8b4ab2b9eb9c8e0a8d89 (diff) | |
download | ofono-75f8148ab5a737420b990f904d7d47b10a2682ba.tar.gz |
gisi: bind pipe end point *before* getting its handle
Diffstat (limited to 'gisi/pep.c')
-rw-r--r-- | gisi/pep.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |