mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-21 16:32:25 +01:00
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:
parent
b272360897
commit
e551a1c3c2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141307
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user