mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Don't try to allocate memory that we're just going to re-allocate later anyways.
Issue 11130, patch by eliel. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@87906 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1221,9 +1221,6 @@ static int gtalk_add_candidate(struct gtalk *client, ikspak *pak)
|
||||
if(!from)
|
||||
from = c->jid->full;
|
||||
|
||||
newcandidate = ast_calloc(1, sizeof(*newcandidate));
|
||||
if (!newcandidate)
|
||||
return 0;
|
||||
for (tmp = client->p; tmp; tmp = tmp->next) {
|
||||
if (iks_find_with_attrib(pak->x, "session", "id", tmp->sid)) {
|
||||
p = tmp;
|
||||
|
Reference in New Issue
Block a user