From 01cd3e6d1e3ebbb585d5dc9a4272633dc2eeb31d Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 20 Jan 2008 14:47:00 +0100 Subject: [PATCH] com_sender(): Check return value of send_buffer(). --- command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command.c b/command.c index a7e330c7..3185533d 100644 --- a/command.c +++ b/command.c @@ -242,9 +242,9 @@ int com_sender(int fd, int argc, char * const * argv) if (scd.sender_num < 0) return ret; msg = senders[scd.sender_num].help(); - send_buffer(fd, msg); + ret = send_buffer(fd, msg); free(msg); - return 1; + return ret; } for (i = 0; i < 10; i++) { mmd_lock(); -- 2.39.5