Hi all,

NgSendMsg returns the bad token number if the debugging level is higher
than 2. It should use the token number from the message structure instead
of the global gMsgId, because that is changed by the ASCII messages sent
in _NgDebugMsg. The following patch fixes the problem for NgSendMsg:

Index: msg.c
===================================================================
RCS file: /usr/ncvs/src/lib/libnetgraph/msg.c,v
retrieving revision 1.5
diff -r1.5 msg.c
84c84
<       return (gMsgId);
---
>       return (msg.header.token);

The same problem exists obviously in NgSendMsgASCII, but I have no test
case for this one and hence no fix.

Regards,
harti
-- 
harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private
              [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to