Diff between b4fbbb033ec3165d153b626c48e560c021fe59a7 and 5ab76c6042343202dc712e7d69103a76c5c36590
Changed Files
| File | Additions | Deletions | Status |
| android/pan.c | +4 | -1 | modified |
Full Patch
diff --git a/android/pan.c b/android/pan.c
index 1cb82a1..418e2a4 100644
--- a/android/pan.c
+++ b/android/pan.c
@@ -146,10 +146,13 @@ static int nap_remove_bridge(void)
return -EOPNOTSUPP;
err = ioctl(sk, SIOCBRDELBR, BNEP_BRIDGE);
+ if (err < 0)
+ err = -errno;
+
close(sk);
if (err < 0)
- return -EOPNOTSUPP;
+ return err;
nap_dev.bridge = false;