hnbap: Don't enqueue a NULL msgb for transmit

This commit is contained in:
Harald Welte 2015-09-07 22:41:45 +02:00
parent 9e270b4834
commit 7b54e32c63
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}