WPS: Check for theoretical gmtime() failure
authorJouni Malinen <j@w1.fi>
Sat, 7 Jun 2014 14:39:51 +0000 (17:39 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 7 Jun 2014 14:39:51 +0000 (17:39 +0300)
commit86388afa56ff9a627caefd7c55f2873bb1688776
tree1f480551a8f4020de7d73079ba2b66517760fd9c
parentd75a5ae01874d4756d34665957bf9640b7a93664
WPS: Check for theoretical gmtime() failure

In theory, gmtime() could return NULL if the year value would not fit
into an integer. However, that cannot really happen with the current
time() value in practice. Anyway, clean up static analyzer reports by
checking for this corner case.

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