diff options
Diffstat (limited to 'src/input/ipa.c')
-rw-r--r-- | src/input/ipa.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input/ipa.c b/src/input/ipa.c index 71e1227..056c648 100644 --- a/src/input/ipa.c +++ b/src/input/ipa.c @@ -64,8 +64,10 @@ int ipa_msg_recv_buffered(int fd, struct msgb **rmsg, struct msgb **tmp_msg) int len, ret; int needed; - if (msg == NULL) + if (msg == NULL) { msg = ipa_msg_alloc(0); + msg->l1h = msg->tail; + } if (msg == NULL) { ret = -ENOMEM; |