[PATCH 1/2] rstpd: Fixed erroneous error message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch is against rstpd v.0.21 (get it here: 
https://lists.linux-foundation.org/pipermail/bridge/2009-February/006178.html).

Description:
Error condition was broken. Fixed.

Signed-off-by: Vitaly Demyanec <vitas at nppfactor.kiev.ua>
---

diff -ur a/ctl_socket.c b/ctl_socket.c
--- a/ctl_socket.c	2009-05-25 18:37:51.000000000 +0300
+++ b/ctl_socket.c	2009-05-25 18:38:58.000000000 +0300
@@ -152,10 +152,10 @@
 	l = sendmsg(p->fd, &msg, MSG_NOSIGNAL);
 	if (l < 0)
 		ERROR("CTL: Couldn't send response: %m");
-	else if (l != sizeof(mhdr) + mhdr.lout) {
+	else if (l != sizeof(mhdr) + mhdr.lout + mhdr.llog) {
 		ERROR
 		    ("CTL: Couldn't send full response, sent %d bytes instead of %zd.",
-		     l, sizeof(mhdr) + mhdr.lout);
+		     l, sizeof(mhdr) + mhdr.lout + mhdr.llog);
 	}
 }

-- 
With Best Regards,
Vitaly Demyanec
_______________________________________________
Bridge mailing list
Bridge@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/bridge

[Index of Archives]     [Netdev]     [AoE Tools]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux