[GPRS] NS: properly assign msgb->l2h to count outgoing bytes correctly

This commit is contained in:
Harald Welte 2010-05-13 12:18:49 +02:00
parent 8e605b045e
commit e183345748
1 changed files with 2 additions and 1 deletions

View File

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