commit | 8d057981a21a60fe08d895c678d14c4ebe061ef7 | [log] [tgz] |
---|---|---|
author | Cyril Bur <cyril.bur@au1.ibm.com> | Fri Oct 30 18:48:08 2015 +1100 |
committer | Cyril Bur <cyril.bur@au1.ibm.com> | Fri Oct 30 18:48:08 2015 +1100 |
tree | ba251ec104a9c0bfb006760cddf3d54f52f363c0 | |
parent | fbff9f552ea0e4374f98622c2bc51c645851a58f [diff] |
Don't exit on short reads just ignore
diff --git a/btbridged.c b/btbridged.c index c829c46..d490c59 100644 --- a/btbridged.c +++ b/btbridged.c
@@ -482,8 +482,8 @@ goto out1; } if (r < data[0] + 1) { - MSG_ERR("Short read from bt (%d)\n", r); - r = -EINVAL; + MSG_ERR("Short read from bt (%d vs %d)\n", r, data[0] + 1); + r = 0; goto out1; }