projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c12ace3
)
chan_mgcp: Don't call close on fd -1.
author
Walter Doekes
<walter+asterisk@wjd.nu>
Thu, 2 Jul 2015 11:19:34 +0000
(13:19 +0200)
committer
Walter Doekes
<walter+asterisk@wjd.nu>
Thu, 2 Jul 2015 11:22:18 +0000
(06:22 -0500)
ASTERISK-25220 #close
Change-Id: Ic48f3a82f51ada87f2fb0e016c9efe0ad56f1ee3
channels/chan_mgcp.c
patch
|
blob
|
history
diff --git
a/channels/chan_mgcp.c
b/channels/chan_mgcp.c
index
16d3c65
..
d9e182c
100644
(file)
--- a/
channels/chan_mgcp.c
+++ b/
channels/chan_mgcp.c
@@
-5007,7
+5007,9
@@
static int unload_module(void)
return -1;
}
- close(mgcpsock);
+ if (mgcpsock > -1) {
+ close(mgcpsock);
+ }
ast_rtp_glue_unregister(&mgcp_rtp_glue);
ast_cli_unregister_multiple(cli_mgcp, sizeof(cli_mgcp) / sizeof(struct ast_cli_entry));
ast_sched_context_destroy(sched);