diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-12-23 01:26:01 +0100 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2018-02-19 11:43:07 +0100 |
commit | c8b0e922303b5e70f73d2f175d7c5b3f370df50f (patch) | |
tree | 294e48c0327d1fb5d07524de54650effe12114a3 | |
parent | c1a676e75ef2164f0db7dca92a20d50e59a51130 (diff) |
bssmap_handle_assignm_req(): Don't print log statemens in malloc failure case
Change-Id: I85528689b5298a13c60ae80fabd8d66459f730a9
-rw-r--r-- | src/osmo-bsc/osmo_bsc_bssap.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/osmo-bsc/osmo_bsc_bssap.c b/src/osmo-bsc/osmo_bsc_bssap.c index 3e15248f3..156ebd313 100644 --- a/src/osmo-bsc/osmo_bsc_bssap.c +++ b/src/osmo-bsc/osmo_bsc_bssap.c @@ -889,10 +889,7 @@ static int bssmap_handle_assignm_req(struct gsm_subscriber_connection *conn, reject: resp = gsm0808_create_assignment_failure(cause, NULL); - if (!resp) { - LOGP(DMSC, LOGL_ERROR, "Channel allocation failure.\n"); - return -1; - } + OSMO_ASSERT(resp); osmo_bsc_sigtran_send(conn, resp); return -1; |