Diff between e1942bc1bef0575da5787127854fa7e56acef0a7 and a3671b9d0e7b9df21a1539d3e952b099900b8d10
Changed Files
| File | Additions | Deletions | Status |
| src/attrib-server.c | +1 | -1 | modified |
Full Patch
diff --git a/src/attrib-server.c b/src/attrib-server.c
index 3291e2d..dd1bba4 100644
--- a/src/attrib-server.c
+++ b/src/attrib-server.c
@@ -1456,7 +1456,7 @@ int attrib_db_update(struct btd_adapter *adapter, uint16_t handle,
a = dl->data;
a->data = g_try_realloc(a->data, len);
- if (a->data == NULL)
+ if (len && a->data == NULL)
return -ENOMEM;
a->len = len;