forked from Mirrors/freeswitch
FS-3391 --resolve Segmentation fault on mod_dingaling when receiving a discovery from the server
This commit is contained in:
parent
b6826180f3
commit
2e651c8fd0
@ -607,7 +607,9 @@ static int on_disco_default(void *user_data, ikspak *pak)
|
||||
int all = 0;
|
||||
|
||||
iks_insert_attrib(iq, "from", handle->login);
|
||||
iks_insert_attrib(iq, "to", pak->from->full);
|
||||
if (pak->from) {
|
||||
iks_insert_attrib(iq, "to", pak->from->full);
|
||||
}
|
||||
iks_insert_attrib(iq, "id", pak->id);
|
||||
iks_insert_attrib(iq, "type", "result");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user