aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-02-26 13:10:51 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-02-26 13:10:51 +0100
commit590cd98842effb1118bb10e5daef99c43029003b (patch)
tree66bbab78b7e6697f7e81d81bc3433e63530ef6b3
parent1b0ea97457e6f0c00ad34a44fe77d99668bf840c (diff)
[mgcp] Print the rtp_port number, do not assume it was already assigned.
-rw-r--r--openbsc/src/mgcp/mgcp_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/mgcp/mgcp_vty.c b/openbsc/src/mgcp/mgcp_vty.c
index b297b42a0..d77646dae 100644
--- a/openbsc/src/mgcp/mgcp_vty.c
+++ b/openbsc/src/mgcp/mgcp_vty.c
@@ -317,7 +317,7 @@ int mgcp_parse_config(const char *config_file, struct mgcp_config *cfg)
rtp_port = rtp_calculate_port(ENDPOINT_NUMBER(endp), g_cfg->rtp_base_port);
if (mgcp_bind_rtp_port(endp, rtp_port) != 0) {
- LOGP(DMGCP, LOGL_FATAL, "Failed to bind: %d\n", endp->rtp_port);
+ LOGP(DMGCP, LOGL_FATAL, "Failed to bind: %d\n", rtp_port);
return -1;
}
}