aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-02-06 12:05:17 (GMT)
committerJouni Malinen <j@w1.fi>2009-02-08 10:36:19 (GMT)
commit393d5fcf6eb597bb94ecb86e6acb652093edcbe9 (patch)
treedb92d978687d85d1c08ecb37a9c7ed26c05f10a2 /src
parent8aab25828246f31411377fc91b2538d73e0ea1ce (diff)
downloadhostap-06-393d5fcf6eb597bb94ecb86e6acb652093edcbe9.zip
hostap-06-393d5fcf6eb597bb94ecb86e6acb652093edcbe9.tar.gz
hostap-06-393d5fcf6eb597bb94ecb86e6acb652093edcbe9.tar.bz2
UPnP: Removed shadowed variable
(cherry picked from commit fda90ab4b73b19d4638e8b7cd4c90458e51f9e3e)
Diffstat (limited to 'src')
-rw-r--r--src/wps/wps_upnp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wps/wps_upnp.c b/src/wps/wps_upnp.c
index 5fdd27d..00e2bc3 100644
--- a/src/wps/wps_upnp.c
+++ b/src/wps/wps_upnp.c
@@ -702,7 +702,7 @@ static int subscription_first_event(struct subscription *s)
struct subscription * subscription_start(struct upnp_wps_device_sm *sm,
char *callback_urls)
{
- struct subscription *s = NULL;
+ struct subscription *s;
time_t now = time(NULL);
time_t expire = now + UPNP_SUBSCRIBE_SEC;
@@ -711,7 +711,7 @@ struct subscription * subscription_start(struct upnp_wps_device_sm *sm,
/* If too many subscriptions, remove oldest */
if (sm->n_subscriptions >= MAX_SUBSCRIPTIONS) {
- struct subscription *s = sm->subscriptions;
+ s = sm->subscriptions;
wpa_printf(MSG_INFO, "WPS UPnP: Too many subscriptions, "
"trashing oldest");
subscription_unlink(s);