nl80211: Check nla_put_nested() return value and handle errors
authorJouni Malinen <j@w1.fi>
Tue, 7 Aug 2012 14:27:55 +0000 (17:27 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 7 Aug 2012 14:27:55 +0000 (17:27 +0300)
commitf0494d0f95f7bc4953e24ba0e25358fe9255c31e
tree80b3be936ec6fdca0d2fd2f42031bc2a5e110a0b
parent6afbc3d69831f7dc2862d600f096196811162700
nl80211: Check nla_put_nested() return value and handle errors

Couple of functions did not verify that nla_put_nested() succeeded. Fix
these by checking the return value and handling error cases cleanly.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/drivers/driver_nl80211.c