summaryrefslogtreecommitdiff
path: root/drivers/nble
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nble')
-rw-r--r--drivers/nble/gatt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nble/gatt.c b/drivers/nble/gatt.c
index daa742737..b269a798b 100644
--- a/drivers/nble/gatt.c
+++ b/drivers/nble/gatt.c
@@ -449,6 +449,8 @@ void on_nble_gatts_write_evt(const struct nble_gatt_wr_evt *evt,
if (attr->write) {
reply_data.status = attr->write(NULL, attr, buf, buflen,
evt->offset);
+ } else {
+ reply_data.status = -EINVAL;
}
if (evt->reply) {