diff options
author | archie <archie@FreeBSD.org> | 2001-10-25 04:02:25 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2001-10-25 04:02:25 +0000 |
commit | 8d7368cdb8cc398afb2951e864c3714cd934277b (patch) | |
tree | d83b420885fe0557b0105320a941335758e6c709 /lib/libnetgraph/msg.c | |
parent | ac4b6328fb8fdbda2b90de198eabf50a43ee9c7d (diff) | |
download | FreeBSD-src-8d7368cdb8cc398afb2951e864c3714cd934277b.zip FreeBSD-src-8d7368cdb8cc398afb2951e864c3714cd934277b.tar.gz |
Fix bugs in NgSendMsg() and NgSendAsciiMsg() where the wrong token
value could be returned when the debug level was non-zero.
Submitted by: Harti Brandt <brandt@fokus.gmd.de>
MFC after: 5 days
Diffstat (limited to 'lib/libnetgraph/msg.c')
-rw-r--r-- | lib/libnetgraph/msg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libnetgraph/msg.c b/lib/libnetgraph/msg.c index 8246d42..2c2565f 100644 --- a/lib/libnetgraph/msg.c +++ b/lib/libnetgraph/msg.c @@ -81,7 +81,7 @@ NgSendMsg(int cs, const char *path, /* Deliver message */ if (NgDeliverMsg(cs, path, &msg, args, arglen) < 0) return (-1); - return (gMsgId); + return (msg.header.token); } /* @@ -146,7 +146,7 @@ NgSendAsciiMsg(int cs, const char *path, const char *fmt, ...) if (NgDeliverMsg(cs, path, binary, binary->data, binary->header.arglen) < 0) return (-1); - return (gMsgId); + return (binary->header.token); } /* |