projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[gsm] Make LCR work with current Osmocom-BB.
[lcr.git]
/
gsm.cpp
diff --git
a/gsm.cpp
b/gsm.cpp
index
07746f7
..
119f0f5
100644
(file)
--- a/
gsm.cpp
+++ b/
gsm.cpp
@@
-199,14
+199,16
@@
struct gsm_mncc *create_mncc(int msg_type, unsigned int callref)
}
int send_and_free_mncc(void *instance, unsigned int msg_type, void *data)
{
}
int send_and_free_mncc(void *instance, unsigned int msg_type, void *data)
{
- int ret;
+ int ret
= 0
;
+ if (instance) {
#ifdef WITH_GSM_BS
#ifdef WITH_GSM_BS
- ret = mncc_send((struct gsm_network *)instance, msg_type, data);
+
ret = mncc_send((struct gsm_network *)instance, msg_type, data);
#endif
#ifdef WITH_GSM_MS
#endif
#ifdef WITH_GSM_MS
- ret = mncc_send((struct osmocom_ms *)instance, msg_type, data);
+
ret = mncc_send((struct osmocom_ms *)instance, msg_type, data);
#endif
#endif
+ }
free(data);
return ret;
free(data);
return ret;