Fix usage of uninitialized value in libupnpamule-svn-r10893
commitf2ea995c6bf85c748824b473e6238fef0ae3f44c
authorupstream svn <svn@amule.org>
Mon, 25 Jan 2016 17:45:47 +0000 (25 17:45 +0000)
committerDévai Tamás <gonosztopi@amule.org>
Wed, 24 Feb 2016 11:30:45 +0000 (24 11:30 +0000)
treedead60d7eb4031040b165b2f9ee90325a2a0d33e
parent72310e5e52849f2b50b038fea5cda335d1ea1a20
Fix usage of uninitialized value in libupnp

Although the documentation says that the SubsId parameter of UpnpSubscribe() is
out-only, the library in fact accesses it for reading before any writing (clones
the current value with strdup). According to the documentation it would be safe
to pass a pointer to an uninitialized memory area to UpnpSubscribe, but reality
disproves it.
.svn-revision
src/UPnPBase.cpp