From 84773e71a0e40be88424fbb000941f99d6c8a1dd Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 6 Apr 1995 17:11:02 +0000 Subject: [PATCH] init unintialized (and unused) fields in the protocol --- src/rsrv/camessage.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/rsrv/camessage.c b/src/rsrv/camessage.c index 7d5b9f26d..6da2fdb69 100644 --- a/src/rsrv/camessage.c +++ b/src/rsrv/camessage.c @@ -1579,6 +1579,8 @@ struct client *client unsigned short *pMinorVersion; int status; unsigned sid; + unsigned long count; + int type; /* * set true if max memory block drops below MAX_BLOCK_THRESHOLD @@ -1620,6 +1622,8 @@ struct client *client */ if (CA_V44(CA_PROTOCOL_VERSION,htons(mp->m_count))) { sid = ~0U; + count = 0; + type = -1; } else { struct channel_in_use *pchannel; @@ -1638,6 +1642,8 @@ struct client *client return; } sid = pchannel->sid; + count = tmp_addr.no_elements; + type = tmp_addr.field_type; } SEND_LOCK(client); @@ -1650,8 +1656,8 @@ struct client *client search_reply->m_postsize = sizeof(*pMinorVersion); /* this field for rmt machines where paddr invalid */ - search_reply->m_type = tmp_addr.field_type; - search_reply->m_count = tmp_addr.no_elements; + search_reply->m_type = type; + search_reply->m_count = count; search_reply->m_cid = sid; /*