commit | 1b53483949c0ff11ef78bcf67196f0ef4db0aeb4 | [log] [tgz] |
---|---|---|
author | Frank Maker <ffrank@google.com> | Thu Jun 30 17:00:49 2011 -0700 |
committer | Frank Maker <ffrank@google.com> | Thu Jun 30 17:39:54 2011 -0700 |
tree | a53c1b71b980eb3e93f57546506dec75685f8657 | |
parent | 2e81f58baa246adbe4dcb479ef40c3f1ffcf8534 [diff] |
BUGFIX: libnl_2 Fixed return value for nla_put. Change-Id: If1ae33bb38c0e88ca7a9220e90ae35dfb0b44b86
diff --git a/libnl_2/attr.c b/libnl_2/attr.c index 11e8ae5..9467668 100644 --- a/libnl_2/attr.c +++ b/libnl_2/attr.c
@@ -154,10 +154,12 @@ /* Reserve space and init nla header */ nla = nla_reserve(msg, attrtype, datalen); - if (nla) + if (nla) { memcpy(nla_data(nla), data, datalen); + return 0; + } - return -errno; + return -EINVAL; }