]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 a7e330c75588e5d7c0a7052d26209add9b3d0ac7..3185533d6ee2617ae784f9dc9395fbf98cd1abfa 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();