diff options
author | Harald Welte <laforge@gnumonks.org> | 2015-09-07 22:41:45 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-09-07 22:41:45 +0200 |
commit | 7b54e32c63341ef6d12ec80e295c57f2c447fb48 (patch) | |
tree | b6def7acbf0c277b0505fc498c07b37324b42699 /src | |
parent | 9e270b483480e3930867314ff36d5a150794b10b (diff) |
hnbap: Don't enqueue a NULL msgb for transmit
Diffstat (limited to 'src')
-rw-r--r-- | src/hnbgw_hnbap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hnbgw_hnbap.c b/src/hnbgw_hnbap.c index 65e5cc9..cdd4895 100644 --- a/src/hnbgw_hnbap.c +++ b/src/hnbgw_hnbap.c @@ -16,6 +16,9 @@ static int hnbgw_hnbap_tx(struct hnb_context *ctx, struct msgb *msg) { + if (!msg) + return -EINVAL; + msgb_ppid(msg) = IUH_PPI_HNBAP; return osmo_wqueue_enqueue(&ctx->wqueue, msg); } |