projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cli: use stdout for output
[project/ubus.git]
/
libubus.c
diff --git
a/libubus.c
b/libubus.c
index
cc59006
..
93f8459
100644
(file)
--- a/
libubus.c
+++ b/
libubus.c
@@
-153,7
+153,7
@@
static bool ubus_validate_hdr(struct ubus_msghdr *hdr)
if (blob_raw_len(hdr->data) < sizeof(*hdr->data))
return false;
- if (blob_
raw_len(hdr->data) + sizeof(*hdr
) > UBUS_MAX_MSGLEN)
+ if (blob_
pad_len(hdr->data
) > UBUS_MAX_MSGLEN)
return false;
return true;