1
Description: Fix auto-renewals to send the correct timeout and SID.
2
Author: Nick Leverton <nick@leverton.org>
3
Bug: https://sourceforge.net/support/tracker.php?aid=2962606
5
Index: libupnp4-1.8.0~svn20090313/upnp/src/gena/gena_ctrlpt.c
6
===================================================================
7
--- libupnp4-1.8.0~svn20090313.orig/upnp/src/gena/gena_ctrlpt.c 2010-03-03 07:29:23.000000000 +0000
8
+++ libupnp4-1.8.0~svn20090313/upnp/src/gena/gena_ctrlpt.c 2010-03-03 08:11:34.000000000 +0000
10
eventType = UPNP_EVENT_SUBSCRIPTION_EXPIRED;
12
UpnpPrintf(UPNP_INFO, GENA, __FILE__, __LINE__, "GENA AUTO RENEW\n");
13
+ timeout = UpnpEventSubscribe_get_TimeOut(sub_struct);
14
errCode = genaRenewSubscription(
16
UpnpEventSubscribe_get_SID(sub_struct),
20
HTTPMETHOD_SUBSCRIBE, &dest_url,
21
- "SID: ", renewal_sid,
22
+ "SID: ", UpnpString_get_String(renewal_sid),
23
"TIMEOUT: Second-", timeout_str );