Remove faulty free in GetDescDocumentAndURL.
temp_str, which points to part of description, should not be freed. (cherry picked from commit f6a3102b487f415895a95a0554ae66b092333c79)
This commit is contained in:
parent
1a8a8228e4
commit
0c92ca4014
@ -357,6 +357,12 @@ Version 1.8.0
|
|||||||
Version 1.6.19
|
Version 1.6.19
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
|
|
||||||
|
2013-09-03 Peng <howtofly(at)gmail.com>
|
||||||
|
|
||||||
|
Remove faulty free in GetDescDocumentAndURL.
|
||||||
|
|
||||||
|
temp_str, which points to part of description, should not be freed.
|
||||||
|
|
||||||
2013-09-02 Peng <howtofly(at)gmail.com>
|
2013-09-02 Peng <howtofly(at)gmail.com>
|
||||||
|
|
||||||
Suppose the UPnP device is listening on 192.168.1.102:49152. Use the following to send
|
Suppose the UPnP device is listening on 192.168.1.102:49152. Use the following to send
|
||||||
|
@ -1623,7 +1623,6 @@ static int GetDescDocumentAndURL(
|
|||||||
}
|
}
|
||||||
if (strlen(temp_str) > (LINE_SIZE - 1)) {
|
if (strlen(temp_str) > (LINE_SIZE - 1)) {
|
||||||
ixmlDocument_free(*xmlDoc);
|
ixmlDocument_free(*xmlDoc);
|
||||||
free(temp_str);
|
|
||||||
return UPNP_E_URL_TOO_BIG;
|
return UPNP_E_URL_TOO_BIG;
|
||||||
}
|
}
|
||||||
strncpy(aliasStr, temp_str, sizeof(aliasStr) - 1);
|
strncpy(aliasStr, temp_str, sizeof(aliasStr) - 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user