Compare commits

...

4 Commits

Author SHA1 Message Date
Ivan Kluchnikov
cf5c67033f debian: Update changelog to 0.15.1-fw.4 2017-05-16 19:42:17 +03:00
Ivan Kluchnikov
0e28273550 ussd: Avoid crashing when no connection is present in the transaction
If we get a ussd response for transaction, but there is no connection
for this transaction, we will now complain, delete the message and return.
2017-05-16 19:37:47 +03:00
Ivan Kluchnikov
0e883ba6d4 debian: Update changelog to 0.15.1-fw.3 2017-02-16 22:12:52 +03:00
Ivan Kluchnikov
b6e37efb91 debian: Add openbsc-dev package to control, it is required for osmo-bts-trx packaging 2017-02-16 22:09:52 +03:00
3 changed files with 31 additions and 0 deletions

13
debian/changelog vendored
View File

@@ -1,3 +1,16 @@
openbsc (0.15.1-fw.4) UNRELEASED; urgency=medium
* ussd: Avoid crashing when no connection is present in the transaction
-- Ivan Klyuchnikov <kluchnikovi@gmail.com> Tue, 16 May 2017 19:40:00 +0200
openbsc (0.15.1-fw.3) UNRELEASED; urgency=medium
* Added openbsc-dev package.
* New release of openbsc for fairwaves build.
-- Ivan Klyuchnikov <kluchnikovi@gmail.com> Wed, 15 Feb 2017 21:11:04 +0200
openbsc (0.15.1-fw.2) UNRELEASED; urgency=medium
* Fixed rebase issues.

11
debian/control vendored
View File

@@ -36,6 +36,17 @@ Description: GSM Network-in-a-Box, implements BSC, MSC, SMSC, HLR, VLR
components bundled together. When using osmocom-nitb, there is no need for a
Mobile Switching Center (MSC) which is needed when using osmocom-bsc.
Package: openbsc-dev
Architecture: all
Depends: ${misc:Depends}
Description: Header file needed by tools tightly integrated
Some other programs depend on gsm_data_shared.h and gsm_data_shared.c
from OpenBSC. This package installs these files to your file system so
that the other packages can build-depend on this package.
.
The directory structure is copied after the structure in the repository
and the header and .c file are installed into /usr/src/osmocom/openbsc/.
Package: osmocom-meas-utils
Architecture: any
Depends: ${shlibs:Depends},

View File

@@ -218,6 +218,13 @@ int on_ussd_response(struct gsm_network *net,
msgb_put(msg, reqhdr->component_length);
ssrep.transaction_id = (trans->transaction_id << 4) ^ 0x80;
if (!trans->conn) {
DEBUGP(DSS, "No connection for transaction with id: %d\n",
trans->transaction_id);
msgb_free(msg);
return -1;
}
rc = gsm0480_send_component(trans->conn, msg, &ssrep);
if (reqhdr->message_type == GSM0480_MTYPE_RELEASE_COMPLETE) {