change created_from to an allocated string buffer

pull/60/head
Richard Fuchs 12 years ago
parent d623710bc4
commit 0e531ebdf2

@ -632,7 +632,7 @@ static const char *call_offer_answer_ng(bencode_item_t *input, struct callmaster
goto out; goto out;
if (addr) { if (addr) {
memcpy(call->created_from, addr, strlen(addr)); call->created_from = call_strdup(call, addr);
} }
/* At least the random ICE strings are contained within the call struct, so we /* At least the random ICE strings are contained within the call struct, so we
* need to hold a ref until we're done sending the reply */ * need to hold a ref until we're done sending the reply */

Loading…
Cancel
Save