projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed null-pointer bug when GSM support is disabled
[lcr.git]
/
interface.c
diff --git
a/interface.c
b/interface.c
index
448affc
..
e7ab171
100644
(file)
--- 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;
/* 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;
{
while(searchif) {
ifport = searchif->ifport;