From e551a1c3c28a1bbe9e994eb002f01dc0f2d75b99 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Fri, 4 Feb 2005 21:36:10 +0000 Subject: [PATCH] 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 --- lib/libnetgraph/msg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libnetgraph/msg.c b/lib/libnetgraph/msg.c index 90b6278a5315..2c5953d928bd 100644 --- a/lib/libnetgraph/msg.c +++ b/lib/libnetgraph/msg.c @@ -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);