summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg2010-12-28 16:24:38 +0100
committerAndreas Eversberg2010-12-28 16:24:38 +0100
commit51c27d3a306987244398b65e2f1d465a98386f2a (patch)
treedc5bc4517d5450eeeed559ceb258c0791d29a136
parentImproved and applied Wimpy's Asterisk 1.8.x support. (diff)
downloadlcr-51c27d3a306987244398b65e2f1d465a98386f2a.tar.gz
lcr-51c27d3a306987244398b65e2f1d465a98386f2a.tar.xz
lcr-51c27d3a306987244398b65e2f1d465a98386f2a.zip
Fixed null-pointer bug when GSM support is disabled
Conflicts: interface.c
-rw-r--r--interface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/interface.c b/interface.c
index 448affc..e7ab171 100644
--- a/interface.c
+++ b/interface.c
@@ -327,7 +327,9 @@ static int inter_portname(struct interface *interface, char *filename, int line,
/* check for port already assigned, but not for shared gsm interface */
searchif = interface_newlist;
- if (!strcmp(value, options.loopback_lcr))
+#if defined WITH_GSM_BS || defined WITH_GSM_MS
+ if (options.gsm && !strcmp(value, gsm->conf.interface_lcr))
+#endif
{
while(searchif) {
ifport = searchif->ifport;