chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
73ae2b7
)
sd-rtnl: add a bit more debugging in case a message is dropped
author
Tom Gundersen
<teg@jklm.no>
Mon, 1 Dec 2014 23:59:34 +0000
(
00:59
+0100)
committer
Tom Gundersen
<teg@jklm.no>
Mon, 1 Dec 2014 23:59:34 +0000
(
00:59
+0100)
src/libsystemd/sd-rtnl/rtnl-message.c
patch
|
blob
|
history
diff --git
a/src/libsystemd/sd-rtnl/rtnl-message.c
b/src/libsystemd/sd-rtnl/rtnl-message.c
index e7238d530bd9460e1cc0b675d233a00b5060b03d..e5c72e765361b52edf395310195716b452234378 100644
(file)
--- a/
src/libsystemd/sd-rtnl/rtnl-message.c
+++ b/
src/libsystemd/sd-rtnl/rtnl-message.c
@@
-1306,8
+1306,10
@@
int socket_read_message(sd_rtnl *rtnl) {
}
/* check that the size matches the message type */
- if (new_msg->nlmsg_len < NLMSG_LENGTH(nl_type->size))
+ if (new_msg->nlmsg_len < NLMSG_LENGTH(nl_type->size)) {
+ log_debug("sd-rtnl: message larger than expected, dropping");
continue;
+ }
r = message_new_empty(rtnl, &m);
if (r < 0)