com_sender(): Check return value of send_buffer().
authorAndre Noll <maan@systemlinux.org>
Sun, 20 Jan 2008 13:47:00 +0000 (14:47 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 20 Jan 2008 13:47:00 +0000 (14:47 +0100)
command.c

index a7e330c..3185533 100644 (file)
--- 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();