[prev in list] [next in list] [prev in thread] [next in thread] 

List:       proftpd-devel
Subject:    Re: [Proftpd-devel] mod_info-0.3rc1
From:       TJ Saunders <tj () castaglia ! org>
Date:       2003-10-30 23:18:16
[Download RAW message or body]


yuekin>I'm using proftpd 1.2.9rc3 and mod_info-0.3rc1 . Well, when
yuekin>i write SITE command without parameters, the connection
yuekin>closes and the program gives a SIGSEGV signal exception.
yuekin>Then, shouldn't proftpd reply showing an error?¿

The following patch should address this:

--- mod_info.c  2003/06/26 23:12:30     1.2
+++ mod_info.c  2003/10/30 23:42:31
@@ -447,6 +447,9 @@
   if (!info_engine)
     return DECLINED(cmd);

+  if (cmd->argc < 2)
+    return DECLINED(cmd);
+
   if (strcasecmp(cmd->argv[1], "HELP") == 0) {

     /* Add descriptions of this module's SITE commands. */

I'll post an updated mod_info to my website shortly with this.

Thanks!
TJ

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

   Truth is within ourselves.

   	-Robert Browning

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
ProFTPD Developers List
<proftpd-devel@proftpd.org>
https://lists.sourceforge.net/lists/listinfo/proftp-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic