From 50b70ae90db3550a60b31efebd25f2b2b1fbe9f0 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 5 Oct 2012 00:23:02 +0200 Subject: [PATCH] miniupnpd/upnpevent.c: fix newSubscriber() for IP6FirewallControl and DeviceProtection services --- miniupnpd/Changelog.txt | 1 + miniupnpd/upnpevents.c | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/miniupnpd/Changelog.txt b/miniupnpd/Changelog.txt index 9b273a0..bbad22a 100644 --- a/miniupnpd/Changelog.txt +++ b/miniupnpd/Changelog.txt @@ -3,6 +3,7 @@ $Id: Changelog.txt,v 1.318 2012/10/04 22:11:55 nanard Exp $ 2012/10/03: Fix atoi() on null pointer in upnpsoap.c properly set service/device version in SSDP messages + fix newSubscriber() for IP6FirewallControl and DeviceProtection services ENABLE_HTTP_DATE : add a Date: header to all HTTP responses 2012/09/27: diff --git a/miniupnpd/upnpevents.c b/miniupnpd/upnpevents.c index abeda6f..7307837 100644 --- a/miniupnpd/upnpevents.c +++ b/miniupnpd/upnpevents.c @@ -1,4 +1,4 @@ -/* $Id: upnpevents.c,v 1.24 2012/04/30 21:21:33 nanard Exp $ */ +/* $Id: upnpevents.c,v 1.26 2012/10/04 22:11:56 nanard Exp $ */ /* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2008-2012 Thomas Bernard @@ -93,6 +93,14 @@ newSubscriber(const char * eventurl, const char * callback, int callbacklen) #ifdef ENABLE_L3F_SERVICE else if(strcmp(eventurl, L3F_EVENTURL)==0) tmp->service = EL3F; +#endif +#ifdef ENABLE_6FC_SERVICE + else if(strcmp(eventurl, WANIP6FC_EVENTURL)==0) + tmp->service = E6FC; +#endif +#ifdef ENABLE_DP_SERVICE + else if(strcmp(eventurl, DP_EVENTURL)==0) + tmp->service = EDP; #endif else { free(tmp);