diff options
-rw-r--r-- | openbsc/src/gprs/gprs_ns.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gprs_ns.c b/openbsc/src/gprs/gprs_ns.c index cdc745aa..8530eb17 100644 --- a/openbsc/src/gprs/gprs_ns.c +++ b/openbsc/src/gprs/gprs_ns.c @@ -476,7 +476,8 @@ int gprs_ns_sendmsg(struct gprs_ns_inst *nsi, struct msgb *msg) return -EBUSY; } - nsh = (struct gprs_ns_hdr *) msgb_push(msg, sizeof(*nsh) + 3); + msg->l2h = msgb_push(msg, sizeof(*nsh) + 3); + nsh = (struct gprs_ns_hdr *) msg->l2h; if (!nsh) { LOGP(DNS, LOGL_ERROR, "Not enough headroom for NS header\n"); return -EIO; |