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:
glebius 2005-02-04 21:36:10 +00:00
parent 90fc3e2a15
commit a1ee3b94f4

View File

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