diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-13 12:18:49 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-13 12:18:49 +0200 |
commit | ec20ba47c7d91c0f1d528a0e8d6b5373687b9632 (patch) | |
tree | 84c829894c1095f28e4d9b1a2702a60219b17079 | |
parent | 3953bdddb78f73e019aded81c77073c55254f466 (diff) |
[GPRS] NS: properly assign msgb->l2h to count outgoing bytes correctly
-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; |