summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg2010-12-28 15:37:15 +0100
committerAndreas Eversberg2010-12-28 15:37:15 +0100
commitae02e4e1849c6bde9cae7a7bd29161da2ec575fc (patch)
tree025dce3c49f99705ce376300014fdc26d8ad4f54
parentAdding various arguments to 'execute' condition and 'execute' action. (diff)
downloadlcr-ae02e4e1849c6bde9cae7a7bd29161da2ec575fc.tar.gz
lcr-ae02e4e1849c6bde9cae7a7bd29161da2ec575fc.tar.xz
lcr-ae02e4e1849c6bde9cae7a7bd29161da2ec575fc.zip
Fixed null-pointer bug when GSM support is disabled
-rw-r--r--interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface.c b/interface.c
index a312e4e..09e0067 100644
--- a/interface.c
+++ b/interface.c
@@ -328,7 +328,7 @@ 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 defined WITH_GSM_BS || defined WITH_GSM_MS
- if (!strcmp(value, gsm->conf.interface_lcr))
+ if (options.gsm && !strcmp(value, gsm->conf.interface_lcr))
#endif
{
while(searchif) {