Diff between 5cfe640e882dca10acadb5ce2ea193dc5a5d2094 and a834df8c7dc4499975b60241951265f98c29c601
Changed Files
| File | Additions | Deletions | Status |
| network/common.c | +5 | -0 | modified |
Full Patch
diff --git a/network/common.c b/network/common.c
index ef72679..6da9f0a 100644
--- a/network/common.c
+++ b/network/common.c
@@ -229,6 +229,11 @@ int bnep_if_down(const char *devname)
close(sk);
+ if (err < 0) {
+ error("Could not bring down %s", devname);
+ return err;
+ }
+
return 0;
}