SF Bug Tracker id 3497714 - Buffer overflows
Fix compile error on WIN32. Local variables must be declared first. Remove outdated comment.
This commit is contained in:
parent
71ab707e81
commit
4c3532585d
@ -2,6 +2,15 @@
|
||||
Version 1.6.16
|
||||
*******************************************************************************
|
||||
|
||||
2012-03-07 Yoichi NAKAYAMA <yoichi.nakayama(at)gmail.com>
|
||||
|
||||
SF Bug Tracker id 3497714 - Buffer overflows
|
||||
|
||||
Fix compile error on WIN32.
|
||||
|
||||
Local variables must be declared first.
|
||||
Remove outdated comment.
|
||||
|
||||
2012-03-07 Yoichi NAKAYAMA <yoichi.nakayama(at)gmail.com>
|
||||
|
||||
Avoid access violation in assertion.
|
||||
|
@ -3448,12 +3448,10 @@ void UpnpThreadDistribution(struct UpnpNonblockParam *Param)
|
||||
#if EXCLUDE_GENA == 0
|
||||
case SUBSCRIBE: {
|
||||
struct Upnp_Event_Subscribe Evt;
|
||||
memset(&Evt, 0, sizeof(Evt));
|
||||
/* Cast away constness */
|
||||
/*UpnpString *Sid = (UpnpString *)UpnpEventSubscribe_get_SID(evt);*/
|
||||
UpnpString *Sid = UpnpString_new();
|
||||
UpnpString *Url = UpnpString_new();
|
||||
UpnpString_set_String(Url, Param->Url);
|
||||
memset(&Evt, 0, sizeof(Evt));
|
||||
Evt.ErrCode = genaSubscribe(
|
||||
Param->Handle,
|
||||
Url,
|
||||
@ -3472,9 +3470,9 @@ void UpnpThreadDistribution(struct UpnpNonblockParam *Param)
|
||||
}
|
||||
case UNSUBSCRIBE: {
|
||||
struct Upnp_Event_Subscribe Evt;
|
||||
memset(&Evt, 0, sizeof(Evt));
|
||||
UpnpString *Sid = UpnpString_new();
|
||||
UpnpString_set_String(Sid, Param->SubsId);
|
||||
memset(&Evt, 0, sizeof(Evt));
|
||||
Evt.ErrCode = genaUnSubscribe(
|
||||
Param->Handle,
|
||||
Sid);
|
||||
@ -3489,9 +3487,9 @@ void UpnpThreadDistribution(struct UpnpNonblockParam *Param)
|
||||
}
|
||||
case RENEW: {
|
||||
struct Upnp_Event_Subscribe Evt;
|
||||
memset(&Evt, 0, sizeof(Evt));
|
||||
UpnpString *Sid = UpnpString_new();
|
||||
UpnpString_set_String(Sid, Param->SubsId);
|
||||
memset(&Evt, 0, sizeof(Evt));
|
||||
Evt.ErrCode = genaRenewSubscription(
|
||||
Param->Handle,
|
||||
Sid,
|
||||
|
Loading…
Reference in New Issue
Block a user