aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ncsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ncsi.c b/src/ncsi.c
index bfe3088..d0632bb 100644
--- a/src/ncsi.c
+++ b/src/ncsi.c
@@ -195,7 +195,7 @@ void ncsi_input(Slirp *slirp, const uint8_t *pkt, int pkt_len)
if (handler->handler) {
handler->handler(slirp, nh, rnh);
}
- ncsi_rsp_len += handler->payload;
+ ncsi_rsp_len += ntohs(rnh->common.length);
} else {
rnh->common.length = 0;
rnh->code = htons(NCSI_PKT_RSP_C_UNAVAILABLE);