Skip to content

Commit

Permalink
Create 0002-sofia-glue-gateway-crash.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lazedo authored Jan 25, 2018
1 parent f5fc727 commit f3adae6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions 0002-sofia-glue-gateway-crash.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c
index 3db4ba6..c01b27d 100644
--- a/src/mod/endpoints/mod_sofia/sofia_glue.c
+++ b/src/mod/endpoints/mod_sofia/sofia_glue.c
@@ -1693,7 +1693,6 @@
void sofia_glue_gateway_list(sofia_profile_t *profile, switch_stream_handle_t *stream, int up)
{
sofia_gateway_t *gp = NULL;
- char *r = (char *) stream->data;

switch_mutex_lock(mod_sofia_globals.hash_mutex);
for (gp = profile->gateways; gp; gp = gp->next) {
@@ -1702,10 +1701,6 @@
if (up ? reged : !reged) {
stream->write_function(stream, "%s ", gp->name);
}
- }
-
- if (r) {
- end_of(r) = '\0';
}

switch_mutex_unlock(mod_sofia_globals.hash_mutex);

0 comments on commit f3adae6

Please sign in to comment.