mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-12-01 11:48:23 -05:00
UPnP: Removed shadowed variable
This commit is contained in:
parent
25e31cccbe
commit
fda90ab4b7
@ -702,7 +702,7 @@ static int subscription_first_event(struct subscription *s)
|
|||||||
struct subscription * subscription_start(struct upnp_wps_device_sm *sm,
|
struct subscription * subscription_start(struct upnp_wps_device_sm *sm,
|
||||||
char *callback_urls)
|
char *callback_urls)
|
||||||
{
|
{
|
||||||
struct subscription *s = NULL;
|
struct subscription *s;
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
time_t expire = now + UPNP_SUBSCRIBE_SEC;
|
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 too many subscriptions, remove oldest */
|
||||||
if (sm->n_subscriptions >= MAX_SUBSCRIPTIONS) {
|
if (sm->n_subscriptions >= MAX_SUBSCRIPTIONS) {
|
||||||
struct subscription *s = sm->subscriptions;
|
s = sm->subscriptions;
|
||||||
wpa_printf(MSG_INFO, "WPS UPnP: Too many subscriptions, "
|
wpa_printf(MSG_INFO, "WPS UPnP: Too many subscriptions, "
|
||||||
"trashing oldest");
|
"trashing oldest");
|
||||||
subscription_unlink(s);
|
subscription_unlink(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user