From 61e74ab5bb6fdb72a47ce72ae10bc97f0382dc7e Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 1 Oct 1998 22:55:41 +0000 Subject: [PATCH] use proper net byte order for exception reflect --- src/rsrv/camessage.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/rsrv/camessage.c b/src/rsrv/camessage.c index 047a1f1c5..85588376d 100644 --- a/src/rsrv/camessage.c +++ b/src/rsrv/camessage.c @@ -1931,8 +1931,14 @@ char *pformat, /* * copy back the request protocol + * (in network byte order) */ - reply[1] = *curp; + reply[1].m_postsize = htons (curp->m_postsize); + reply[1].m_cmmd = htons (curp->m_cmmd); + reply[1].m_type = htons (curp->m_type); + reply[1].m_count = htons (curp->m_count); + reply[1].m_cid = curp->m_cid; + reply[1].m_available = curp->m_available; /* * add their context string into the protocol