When we have converted an ASCII message to binary, set its version in

the header. Otherwise we will send a message with zero version.

MFC after:	3 days
This commit is contained in:
Gleb Smirnoff 2005-02-04 21:36:10 +00:00
parent b272360897
commit e551a1c3c2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141307

View File

@ -144,6 +144,7 @@ NgSendAsciiMsg(int cs, const char *path, const char *fmt, ...)
if (++gMsgId < 0)
gMsgId = 1;
binary->header.token = gMsgId;
binary->header.version = NG_VERSION;
if (NgDeliverMsg(cs,
path, binary, binary->data, binary->header.arglen) < 0) {
free(reply);