init unintialized (and unused) fields in the protocol

This commit is contained in:
Jeff Hill
1995-04-06 17:11:02 +00:00
parent 214b9ae5c1
commit 84773e71a0

View File

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