Make radius_msg_add_attr_user_password() easier for static analyzers
authorJouni Malinen <j@w1.fi>
Sun, 13 Nov 2011 21:14:57 +0000 (23:14 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 13 Nov 2011 21:14:57 +0000 (23:14 +0200)
commit16cc7a43043c7aedb2196d3b5a94e9ea44b7a781
treec45d8126d9cb76563c16f256e4c93d4f041d869a
parenta9ea17491a2c9e95bf9ac98fd36e56fde3faf188
Make radius_msg_add_attr_user_password() easier for static analyzers

Explicitly validate data_len so that static analyzers do not get
confused about the padlen validation. This is not really needed, but it
makes the code a bit easier for static analyzers.

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