1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

sd-rtnl: add a bit more debugging in case a message is dropped

This commit is contained in:
Tom Gundersen 2014-12-02 00:59:34 +01:00
parent 73ae2b7dad
commit 64918838d5

View File

@ -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)