]> git.ipfire.org Git - thirdparty/hostap.git/commit
WPS UPnP: Make dl_list_first() use easier for static analyzer
authorJouni Malinen <j@w1.fi>
Sat, 11 Oct 2014 10:43:27 +0000 (13:43 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 11 Oct 2014 10:45:25 +0000 (13:45 +0300)
commit3e9fa3be62d2f39f4ad997427a0c06a50a8ccea2
treeaaa3c62c7f2feedf59fdec0277885928abb1c969
parent6cbdb0c537e6e4dddfef043f3bb7a2f403f2265b
WPS UPnP: Make dl_list_first() use easier for static analyzer

The preceding dl_list_len() check guarantees that dl_list_first()
returns an entry and not NULL. However, that seems to be a bit too
difficult path to follow for static analyzers, so add an explicit check
for the dl_list_first() return value to be non-NULL to avoid warnings.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/wps/wps_upnp.c