]> git.tue.mpg.de Git - paraslash.git/commitdiff
Merge branch 'maint'
authorAndre Noll <maan@systemlinux.org>
Thu, 3 Feb 2011 08:15:58 +0000 (09:15 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 3 Feb 2011 08:15:58 +0000 (09:15 +0100)
1  2 
command.c

diff --cc command.c
index 57e851f938c700044be20b62226dc07fae63c07e,1810e5b1f0eb6793a97370604431569431566e2c..f462016b2e572f6a58691362cb52c9bdb280ea91
+++ b/command.c
@@@ -458,12 -387,10 +458,10 @@@ int com_help(struct rc4_context *rc4c, 
        }
        /* argument given for help */
        cmd = get_cmd_ptr(argv[1], &handler);
-       if (!cmd) {
-               free(handler);
+       if (!cmd)
                return -E_BAD_CMD;
-       }
        perms = cmd_perms_itohuman(cmd->perms);
 -      ret = send_va_buffer(fd,
 +      ret = rc4_send_va_buffer(rc4c,
                "%s - %s\n\n"
                "handler: %s\n"
                "permissions: %s\n"