Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b534839 authored by Frank Maker's avatar Frank Maker
Browse files

BUGFIX: libnl_2

Fixed return value for nla_put.

Change-Id: If1ae33bb38c0e88ca7a9220e90ae35dfb0b44b86
parent 2e81f58b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -154,10 +154,12 @@ int nla_put(struct nl_msg *msg, int attrtype, int datalen, const void *data)

	/* 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;

}