summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-08-31 00:13:49 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-08-31 00:13:49 +0200
commit8ae194b922f9a93643bfe5c49dd994707c151d5f (patch)
tree8b5bcf6c1cb132ee4928a6630463bf35285148a7
parent645ce0312ba9191521f67b798e410564d38e79bd (diff)
NAT: Fix uninitialized variable, only send X-ow for the CRCX...
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c
index ddeb241..8f325b2 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_mgcp_utils.c
@@ -538,7 +538,7 @@ struct msgb *bsc_mgcp_rewrite(char *input, int length, int endpoint,
char buf[128];
char *running, *token;
struct msgb *output;
- int is_crcx;
+ int is_crcx = 0;
if (length > 4096 - 128) {
LOGP(DMGCP, LOGL_ERROR, "Input is too long.\n");